567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
761 B
Nix
38 lines
761 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "colour";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ryASD+/Sr+3osAH77y6p2nCtfUn6/bZIkCXa6HRcOu4=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/vaab/colour/pull/66 (but does not merge cleanly)
|
|
./remove-unmaintained-d2to1.diff
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlags = [
|
|
"--doctest-glob=*.rst"
|
|
"--doctest-modules"
|
|
];
|
|
|
|
pythonImportsCheck = [ "colour" ];
|
|
|
|
meta = {
|
|
description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
|
|
homepage = "https://github.com/vaab/colour";
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|