python3Packages.django-taggit: rename from django_taggit and refactor
This commit is contained in:
parent
bf2c4da250
commit
0a41e93ce4
@ -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 ];
|
||||
};
|
||||
|
@ -45,6 +45,7 @@ mapAliases ({
|
||||
discogs_client = discogs-client; # added 2021-07-02
|
||||
djangorestframework-jwt = drf-jwt; # added 2021-07-20
|
||||
django_redis = django-redis; # added 2021-10-11
|
||||
django_taggit = django-taggit; # added 2021-10-11
|
||||
dns = dnspython; # added 2017-12-10
|
||||
dogpile_cache = dogpile-cache; # added 2021-10-28
|
||||
faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
|
||||
|
@ -2211,7 +2211,7 @@ in {
|
||||
|
||||
django_tagging = callPackage ../development/python-modules/django_tagging { };
|
||||
|
||||
django_taggit = callPackage ../development/python-modules/django_taggit { };
|
||||
django-taggit = callPackage ../development/python-modules/django-taggit { };
|
||||
|
||||
django_treebeard = callPackage ../development/python-modules/django_treebeard { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user