Unverified Commit b8bb68a6 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

Merge pull request #185677 from onny/colormath

parents 47330347 8dd0076d
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -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";