forked from mirrors/nixpkgs
pythonPackages.colour: Move to own file
This commit is contained in:
parent
ece5086d0e
commit
921934f458
19
pkgs/development/python-modules/colour/default.nix
Normal file
19
pkgs/development/python-modules/colour/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue