pythonPackages.appconf: fix build, enable tests
This commit is contained in:
parent
0890e94321
commit
8e709be9ba
@ -1,17 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, six }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, django }:
|
||||
buildPythonPackage rec {
|
||||
pname = "django-appconf";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "35f13ca4d567f132b960e2cd4c832c2d03cb6543452d34e29b7ba10371ba80e3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "django-compressor";
|
||||
repo = "django-appconf";
|
||||
rev = version;
|
||||
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
|
||||
};
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
propagatedBuildInputs = [ six django ];
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
checkPhase = ''
|
||||
# prove we're running tests against installed package, not build dir
|
||||
rm -r appconf
|
||||
python -m django test --settings="tests.test_settings"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A helper class for handling configuration defaults of packaged apps gracefully";
|
||||
|
Loading…
Reference in New Issue
Block a user