2020-01-28 15:02:19 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, six, django, fetchpatch }:
|
2017-07-11 09:58:12 +02:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-appconf";
|
2019-04-16 19:15:35 +02:00
|
|
|
version = "1.0.3";
|
2017-07-11 09:58:12 +02:00
|
|
|
|
2019-06-16 15:09:59 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django-compressor";
|
|
|
|
repo = "django-appconf";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
|
2017-07-11 09:58:12 +02:00
|
|
|
};
|
|
|
|
|
2019-06-16 15:09:59 +02:00
|
|
|
propagatedBuildInputs = [ six django ];
|
2017-07-11 09:58:12 +02:00
|
|
|
|
2020-01-28 15:02:19 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "backport_django_2_2.patch";
|
|
|
|
url = "https://github.com/django-compressor/django-appconf/commit/1526a842ee084b791aa66c931b3822091a442853.patch";
|
|
|
|
sha256 = "1vl2s6vlf15089s8p4c3g4d5iqm8jva66bdw683r8440f80ixgmw";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-06-16 15:09:59 +02:00
|
|
|
checkPhase = ''
|
|
|
|
# prove we're running tests against installed package, not build dir
|
|
|
|
rm -r appconf
|
|
|
|
python -m django test --settings="tests.test_settings"
|
|
|
|
'';
|
2017-07-11 09:58:12 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A helper class for handling configuration defaults of packaged apps gracefully";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://django-appconf.readthedocs.org/";
|
2017-07-11 09:58:12 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
}
|