|
|
|
@ -1,28 +1,37 @@ |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, python |
|
|
|
|
, fetchPypi |
|
|
|
|
, pythonOlder |
|
|
|
|
, fetchPypi |
|
|
|
|
, django |
|
|
|
|
, djangorestframework |
|
|
|
|
, mock |
|
|
|
|
, isort |
|
|
|
|
, isPy3k |
|
|
|
|
, python |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "django-taggit"; |
|
|
|
|
version = "1.5.1"; |
|
|
|
|
disabled = !isPy3k; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "e5bb62891f458d55332e36a32e19c08d20142c43f74bc5656c803f8af25c084a"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ isort django djangorestframework ]; |
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
django |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"taggit" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
djangorestframework |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ mock ]; |
|
|
|
|
checkPhase = '' |
|
|
|
|
# prove we're running tests against installed package, not build dir |
|
|
|
|
rm -r taggit |
|
|
|
@ -33,9 +42,9 @@ buildPythonPackage rec { |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "django-taggit is a reusable Django application for simple tagging"; |
|
|
|
|
homepage = "https://github.com/alex/django-taggit/tree/master/"; |
|
|
|
|
license = licenses.bsd2; |
|
|
|
|
description = "Simple tagging for django"; |
|
|
|
|
homepage = "https://github.com/jazzband/django-taggit"; |
|
|
|
|
license = licenses.bsd3; |
|
|
|
|
maintainers = with maintainers; [ desiderius ]; |
|
|
|
|
}; |
|
|
|
|
|