Skip to content

Commit

Permalink
Merge pull request #63224 from risicle/ris-django-taggit-fix
Browse files Browse the repository at this point in the history
pythonPackages.django_taggit: fix build, enable tests
  • Loading branch information
worldofpeace committed Jun 30, 2019
2 parents e295fd8 + 4dcbdbc commit e3926c8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/development/python-modules/django_taggit/default.nix
@@ -1,7 +1,11 @@
{ stdenv
, buildPythonPackage
, python
, fetchPypi
, pythonOlder
, django
, mock
, isort
}:

buildPythonPackage rec {
Expand All @@ -14,7 +18,14 @@ buildPythonPackage rec {
sha256 = "a21cbe7e0879f1364eef1c88a2eda89d593bf000ebf51c3f00423c6927075dce";
};

doCheck = false;
propagatedBuildInputs = [ isort django ];

checkInputs = [ mock ];
checkPhase = ''
# prove we're running tests against installed package, not build dir
rm -r taggit
${python.interpreter} -m django test --settings=tests.settings
'';

meta = with stdenv.lib; {
description = "django-taggit is a reusable Django application for simple tagging";
Expand Down

0 comments on commit e3926c8

Please sign in to comment.