pythonPackages.django_colorful: refactor move to python-modules
This commit is contained in:
parent
4906ff50a9
commit
90089d8786
28
pkgs/development/python-modules/django_colorful/default.nix
Normal file
28
pkgs/development/python-modules/django_colorful/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2241,27 +2241,7 @@ in {
|
|||||||
|
|
||||||
django_appconf = callPackage ../development/python-modules/django_appconf { };
|
django_appconf = callPackage ../development/python-modules/django_appconf { };
|
||||||
|
|
||||||
django_colorful = buildPythonPackage rec {
|
django_colorful = callPackage ../development/python-modules/django_colorful { };
|
||||||
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_compressor = callPackage ../development/python-modules/django_compressor { };
|
django_compressor = callPackage ../development/python-modules/django_compressor { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user