python3Packages.django-appconf: rename from django_appconf, clean up
This commit is contained in:
parent
d713dfae5e
commit
36ac329f39
|
@ -1,7 +1,18 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, six, django, fetchpatch }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, django
|
||||
, six
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-appconf";
|
||||
version = "1.0.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "django-compressor";
|
||||
|
@ -10,20 +21,20 @@ buildPythonPackage rec {
|
|||
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six django ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "backport_django_2_2.patch";
|
||||
url = "https://github.com/django-compressor/django-appconf/commit/1526a842ee084b791aa66c931b3822091a442853.patch";
|
||||
sha256 = "1vl2s6vlf15089s8p4c3g4d5iqm8jva66bdw683r8440f80ixgmw";
|
||||
})
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
six
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
preCheck = ''
|
||||
# prove we're running tests against installed package, not build dir
|
||||
rm -r appconf
|
||||
python -m django test --settings="tests.test_settings"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m django test --settings=tests.test_settings
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, django, django_appconf }:
|
||||
{ lib, buildPythonPackage, fetchPypi, django, django-appconf }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-statici18n";
|
||||
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
|||
sha256 = "dbcdac190d93e0b4eabcab8875c8eb68795eceb442f926843ec5cbe1432fe628";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ django django_appconf ];
|
||||
propagatedBuildInputs = [ django django-appconf ];
|
||||
|
||||
# pypi package does not contains test harness
|
||||
# source tarball requires setting up a config
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, buildPythonPackage, fetchPypi,
|
||||
rcssmin, rjsmin, django_appconf }:
|
||||
rcssmin, rjsmin, django-appconf }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django_compressor";
|
||||
|
@ -18,7 +18,7 @@ buildPythonPackage rec {
|
|||
# requires django-sekizai, which we don't have packaged yet
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ rcssmin rjsmin django_appconf ];
|
||||
propagatedBuildInputs = [ rcssmin rjsmin django-appconf ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compresses linked and inline JavaScript or CSS into single cached files";
|
||||
|
|
|
@ -50,6 +50,7 @@ mapAliases ({
|
|||
diff_cover = diff-cover; # added 2021-07-02
|
||||
discogs_client = discogs-client; # added 2021-07-02
|
||||
djangorestframework-jwt = drf-jwt; # added 2021-07-20
|
||||
django_appconf = django-appconf; # added 2022-03-03
|
||||
django_environ = django-environ; # added 2021-12-25
|
||||
django_extensions = django-extensions; # added 2022-01-09
|
||||
django_redis = django-redis; # added 2021-10-11
|
||||
|
|
|
@ -2219,7 +2219,7 @@ in {
|
|||
|
||||
django-anymail = callPackage ../development/python-modules/django-anymail { };
|
||||
|
||||
django_appconf = callPackage ../development/python-modules/django_appconf { };
|
||||
django-appconf = callPackage ../development/python-modules/django-appconf { };
|
||||
|
||||
django-auth-ldap = callPackage ../development/python-modules/django-auth-ldap { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue