pythonPackages.django_classtags: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:43:42 -04:00 committed by Frederik Rietdijk
parent 0d7a983a27
commit 9c573f5379
2 changed files with 28 additions and 20 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
pname = "django-classy-tags";
version = "0.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "0wxvpmjdzk0aajk33y4himn3wqjx7k0aqlka9j8ay3yfav78bdq0";
};
propagatedBuildInputs = [ django ];
# tests appear to be broken on 0.6.1 at least
doCheck = ( version != "0.6.1" );
meta = with stdenv.lib; {
description = "Class based template tags for Django";
homepage = https://github.com/ojii/django-classy-tags;
license = licenses.bsd3;
};
}

View File

@ -2289,26 +2289,7 @@ in {
propagatedBuildInputs = with self; [ django ];
});
django_classytags = buildPythonPackage rec {
name = "django-classy-tags-${version}";
version = "0.6.1";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-classy-tags/${name}.tar.gz";
sha256 = "0wxvpmjdzk0aajk33y4himn3wqjx7k0aqlka9j8ay3yfav78bdq0";
};
propagatedBuildInputs = with self; [ django ];
# tests appear to be broken on 0.6.1 at least
doCheck = ( version != "0.6.1" );
meta = {
description = "Class based template tags for Django";
homepage = https://github.com/ojii/django-classy-tags;
license = licenses.bsd3;
};
};
django_classytags = callPackage ../development/python-modules/django_classytags { };
# This package may need an older version of Django.
# Override the package set and set e.g. `django = super.django_1_9`.