5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
39 lines
844 B
Nix
39 lines
844 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, python
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, django
|
|
, mock
|
|
, isort
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "django-taggit";
|
|
version = "1.1.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "044fzcpmns90kaxdi49qczlam4xsi8rl73rpfwvxx1gkcqzidgq1";
|
|
};
|
|
|
|
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";
|
|
homepage = https://github.com/alex/django-taggit/tree/master/;
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ desiderius ];
|
|
};
|
|
|
|
}
|