pythonPackages.django_colorful: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 13:34:35 -04:00 committed by Frederik Rietdijk
parent 4906ff50a9
commit 90089d8786
2 changed files with 29 additions and 21 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, django
}:
buildPythonPackage rec {
pname = "django-colorful";
version = "1.2";
src = fetchPypi {
inherit pname version;
sha256 = "0y34hzvfrm1xbxrd8frybc9yzgqvz4c07frafipjikw7kfjsw8az";
};
# Tests aren't run
doCheck = false;
# Requires Django >= 1.8
buildInputs = [ django ];
meta = with stdenv.lib; {
description = "Django extension that provides database and form color fields";
homepage = https://github.com/charettes/django-colorful;
license = licenses.mit;
};
}

View File

@ -2241,27 +2241,7 @@ in {
django_appconf = callPackage ../development/python-modules/django_appconf { };
django_colorful = buildPythonPackage rec {
name = "django-colorful-${version}";
version = "1.2";
src = pkgs.fetchurl {
url = "mirror://pypi/d/django-colorful/${name}.tar.gz";
sha256 = "0y34hzvfrm1xbxrd8frybc9yzgqvz4c07frafipjikw7kfjsw8az";
};
# Tests aren't run
doCheck = false;
# Requires Django >= 1.8
buildInputs = with self; [ django ];
meta = {
description = "Django extension that provides database and form color fields";
homepage = https://github.com/charettes/django-colorful;
license = licenses.mit;
};
};
django_colorful = callPackage ../development/python-modules/django_colorful { };
django_compressor = callPackage ../development/python-modules/django_compressor { };