python3Packages.django-taggit: rename from django_taggit and refactor

This commit is contained in:
Martin Weinelt 2021-10-11 23:59:52 +02:00
parent bf2c4da250
commit 0a41e93ce4
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
3 changed files with 20 additions and 10 deletions

View file

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

View file

@ -45,6 +45,7 @@ mapAliases ({
discogs_client = discogs-client; # added 2021-07-02 discogs_client = discogs-client; # added 2021-07-02
djangorestframework-jwt = drf-jwt; # added 2021-07-20 djangorestframework-jwt = drf-jwt; # added 2021-07-20
django_redis = django-redis; # added 2021-10-11 django_redis = django-redis; # added 2021-10-11
django_taggit = django-taggit; # added 2021-10-11
dns = dnspython; # added 2017-12-10 dns = dnspython; # added 2017-12-10
dogpile_cache = dogpile-cache; # added 2021-10-28 dogpile_cache = dogpile-cache; # added 2021-10-28
faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12 faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12

View file

@ -2211,7 +2211,7 @@ in {
django_tagging = callPackage ../development/python-modules/django_tagging { }; 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 { }; django_treebeard = callPackage ../development/python-modules/django_treebeard { };