Merge pull request #63224 from risicle/ris-django-taggit-fix

pythonPackages.django_taggit: fix build, enable tests
This commit is contained in:
worldofpeace 2019-06-30 15:53:45 -04:00 committed by GitHub
commit e3926c8043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,11 @@
{ stdenv
, buildPythonPackage
, python
, fetchPypi
, pythonOlder
, django
, mock
, isort
}:
buildPythonPackage rec {
@ -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";