python3Packages.colorzero: init at 2.0

This commit is contained in:
Martin Weinelt
2022-08-08 00:33:38 +02:00
parent ffbeb99b89
commit 76e7ca2cfc
2 changed files with 55 additions and 0 deletions
@@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pkginfo
, sphinxHook
, sphinx-rtd-theme
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "colorzero";
version = "2.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "waveform80";
repo = pname;
rev = "refs/tags/release-${version}";
hash = "sha256-0NoQsy86OHQNLZsTEuF5s2MlRUoacF28jNeHgFKAH14=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov" ""
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
pkginfo
sphinx-rtd-theme
sphinxHook
];
pythonImportsCheck = [
"colorzero"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Yet another Python color library";
homepage = "https://github.com/waveform80/colorzero";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}
+2
View File
@@ -1894,6 +1894,8 @@ in {
colorthief = callPackage ../development/python-modules/colorthief { };
colorzero = callPackage ../development/python-modules/colorzero { };
colour = callPackage ../development/python-modules/colour { };
cometblue-lite = callPackage ../development/python-modules/cometblue-lite { };