2019-06-16 13:09:59 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, six, django }:
|
2017-07-11 07:58:12 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-appconf";
|
2019-04-16 17:15:35 +00:00
|
|
|
version = "1.0.3";
|
2017-07-11 07:58:12 +00:00
|
|
|
|
2019-06-16 13:09:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django-compressor";
|
|
|
|
repo = "django-appconf";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
|
2017-07-11 07:58:12 +00:00
|
|
|
};
|
|
|
|
|
2019-06-16 13:09:59 +00:00
|
|
|
propagatedBuildInputs = [ six django ];
|
2017-07-11 07:58:12 +00:00
|
|
|
|
2019-06-16 13:09:59 +00: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 07:58:12 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A helper class for handling configuration defaults of packaged apps gracefully";
|
2019-04-22 08:24:21 +00:00
|
|
|
homepage = https://django-appconf.readthedocs.org/;
|
2017-07-11 07:58:12 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ desiderius ];
|
|
|
|
};
|
|
|
|
}
|