11 buildPythonPackage rec {
12 pname = "django-taggit";
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-7c19seDzXDBOCCovYx3awuFu9SlgKVJOt5KvdDDKtMw=";
23 propagatedBuildInputs = [ django ];
25 pythonImportsCheck = [ "taggit" ];
27 nativeCheckInputs = [ djangorestframework ];
30 # prove we're running tests against installed package, not build dir
32 # Replace directory of locale
33 substituteInPlace ./tests/test_utils.py \
34 --replace 'os.path.dirname(__file__), ".."' "\"$out/lib/python${lib.versions.majorMinor python.version}/site-packages/\""
35 ${python.interpreter} -m django test --settings=tests.settings
39 description = "Simple tagging for django";
40 homepage = "https://github.com/jazzband/django-taggit";
41 changelog = "https://github.com/jazzband/django-taggit/blob/${version}/CHANGELOG.rst";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ desiderius ];