python312Packages.spectra: 0.0.11 -> 0.1.0 (#381875)

This commit is contained in:
Gaétan Lepage
2025-02-23 01:35:06 +01:00
committed by GitHub
3 changed files with 50 additions and 18 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
networkx,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "colormath2";
version = "3.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bkmgit";
repo = "python-colormath2";
tag = version;
hash = "sha256-G8b0L8A2RzbVQFPNg2fuBklqTNjo3yqvek/+GnqtsHc=";
};
build-system = [ setuptools ];
dependencies = [
networkx
numpy
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "colormath2" ];
meta = {
description = "Color math and conversion library (fork)";
homepage = "https://github.com/bkmgit/python-colormath2";
changelog = "https://github.com/bkmgit/python-colormath2/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ apraga ];
};
}
@@ -1,40 +1,29 @@
{
buildPythonPackage,
colormath,
fetchFromGitHub,
fetchpatch2,
lib,
pytestCheckHook,
buildPythonPackage,
fetchFromGitHub,
setuptools,
colormath2,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "spectra";
version = "0.0.11";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jsvine";
repo = "spectra";
tag = "v${version}";
hash = "sha256-4A2TWTxYqckJ3DX5cd2KN3KXcmO/lQdXmOEnGi76RsA=";
hash = "sha256-PS5p9IR3v6+Up5Fcq8mhkprVgXigD6PZUF4/6hbv7NI=";
};
patches = [
# https://github.com/jsvine/spectra/pull/21
(fetchpatch2 {
name = "nose-to-pytest.patch";
url = "https://github.com/jsvine/spectra/commit/50037aba16dac4bf0fb7ffbd787d0e6b906e8a4b.patch";
hash = "sha256-cMoIbjRwcZjvhiIOcJR7NmIAOaqpr/e5eh9+sPGKqos=";
excludes = [ ".github/*" ];
})
];
build-system = [
setuptools
];
propagatedBuildInputs = [ colormath ];
dependencies = [ colormath2 ];
nativeCheckInputs = [
pytestCheckHook
+2
View File
@@ -2568,6 +2568,8 @@ self: super: with self; {
colormath = callPackage ../development/python-modules/colormath { };
colormath2 = callPackage ../development/python-modules/colormath2 { };
colorspacious = callPackage ../development/python-modules/colorspacious { };
colorthief = callPackage ../development/python-modules/colorthief { };