pythonPackages.colour: Move to own file

This commit is contained in:
Elis Hirwing 2018-03-31 12:24:00 +02:00 committed by Frederik Rietdijk
parent ece5086d0e
commit 921934f458
2 changed files with 20 additions and 18 deletions

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi, d2to1 }:
buildPythonPackage rec {
pname = "colour";
version = "0.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "0w1j43l76zw10dvs2kk7jz7kqj2ss7gfgfdxyls27pckwin89gxb";
};
buildInputs = [ d2to1 ];
meta = with stdenv.lib; {
description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
homepage = https://github.com/vaab/colour;
license = licenses.bsd2;
};
}

View File

@ -1123,24 +1123,7 @@ in {
colorlog = callPackage ../development/python-modules/colorlog { };
colour = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "colour";
version = "0.1.2";
src = pkgs.fetchurl {
url = "mirror://pypi/c/${pname}/${name}.tar.gz";
sha256 = "0w1j43l76zw10dvs2kk7jz7kqj2ss7gfgfdxyls27pckwin89gxb";
};
buildInputs = with self; [ d2to1 ];
meta = {
description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
homepage = https://github.com/vaab/colour;
license = licenses.bsd2;
};
};
colour = callPackage ../development/python-modules/colour {};
constantly = callPackage ../development/python-modules/constantly { };