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 {
|
buildPythonPackage rec {
|
||||||
pname = "django-appconf";
|
pname = "django-appconf";
|
||||||
version = "1.0.3";
|
version = "1.0.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "django-compressor";
|
||||||
sha256 = "35f13ca4d567f132b960e2cd4c832c2d03cb6543452d34e29b7ba10371ba80e3";
|
repo = "django-appconf";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "06hwbz7362y0la9np3df25mms235fcqgpd2vn0mnf8dri9spzy1h";
|
||||||
};
|
};
|
||||||
|
|
||||||
# No tests in archive
|
propagatedBuildInputs = [ six django ];
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A helper class for handling configuration defaults of packaged apps gracefully";
|
description = "A helper class for handling configuration defaults of packaged apps gracefully";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user