mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 00:43:24 +00:00
python3Packages.django_taggit: add djangorestframework
This commit is contained in:
parent
d5646735f0
commit
104fd7c3f6
@ -4,6 +4,7 @@
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, django
|
||||
, djangorestframework
|
||||
, mock
|
||||
, isort
|
||||
, isPy3k
|
||||
@ -19,12 +20,15 @@ buildPythonPackage rec {
|
||||
sha256 = "e5bb62891f458d55332e36a32e19c08d20142c43f74bc5656c803f8af25c084a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ isort django ];
|
||||
propagatedBuildInputs = [ isort django djangorestframework ];
|
||||
|
||||
checkInputs = [ mock ];
|
||||
checkPhase = ''
|
||||
# prove we're running tests against installed package, not build dir
|
||||
rm -r taggit
|
||||
# Replace directory of locale
|
||||
substituteInPlace ./tests/test_utils.py \
|
||||
--replace 'os.path.dirname(__file__), ".."' "\"$out/lib/python${lib.versions.majorMinor python.version}/site-packages/\""
|
||||
${python.interpreter} -m django test --settings=tests.settings
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user