My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/django-taggit/default.nix

49 lines
1.1 KiB

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, django
, djangorestframework
, python
}:
buildPythonPackage rec {
pname = "django-taggit";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5kW4491PhZidXvXFo9Xrvlut9dHlG1PkLQr3JiQLALk=";
};
propagatedBuildInputs = [
django
];
pythonImportsCheck = [
"taggit"
];
checkInputs = [
djangorestframework
];
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
'';
meta = with lib; {
description = "Simple tagging for django";
homepage = "https://github.com/jazzband/django-taggit";
license = licenses.bsd3;
maintainers = with maintainers; [ desiderius ];
};
}