summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-08-11 21:54:00 +0200
committerGitHub <noreply@github.com>2022-08-11 21:54:00 +0200
commitb8bb68a6928fda38e5bf44ac42f1a0d3dd950f2b (patch)
tree9af5e27d76b4e643bd10ec4329a09a8e79dcb812
parent473303479fe38749fb94823aff28469ba08f85f9 (diff)
parent8dd0076d74e412204f4667dcef9dabc3d7263974 (diff)
Merge pull request #185677 from onny/colormath
-rw-r--r--pkgs/development/python-modules/colormath/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/colormath/default.nix b/pkgs/development/python-modules/colormath/default.nix
index b749761da06c..7f9f9f1a9ce7 100644
--- a/pkgs/development/python-modules/colormath/default.nix
+++ b/pkgs/development/python-modules/colormath/default.nix
@@ -8,20 +8,26 @@
buildPythonPackage rec {
pname = "colormath";
- version = "3.0.0";
+ # Switch to unstable which fixes an deprecation issue with newer numpy
+ # versions, should be included in versions > 3.0
+ # https://github.com/gtaylor/python-colormath/issues/104
+ version = "unstable-2021-04-17";
src = fetchFromGitHub {
owner = "gtaylor";
- rev = "3.0.0";
repo = "python-colormath";
- sha256 = "1nqf5wy8ikx2g684khzvjc4iagkslmbsxxwilbv4jpaznr9lahdl";
+ rev = "4a076831fd5136f685aa7143db81eba27b2cd19a";
+ sha256 = "sha256-eACVPIQFgiGiVmQ/PjUxP/UH/hBOsCywz5PlgpA4dk4=";
};
propagatedBuildInputs = [ networkx numpy ];
checkInputs = [ nose ];
+
checkPhase = "nosetests";
+ pythonImportsCheck = [ "colormath" ];
+
meta = with lib; {
description = "Color math and conversion library";
homepage = "https://github.com/gtaylor/python-colormath";