From e4134747f5666bcab8680aff67fa3b63384f9a0f Mon Sep 17 00:00:00 2001 From: Jonathan Reeve Date: Thu, 9 Jan 2020 18:37:54 -0500 Subject: [PATCH] pythonPackages.colormath: init at 3.0.0 --- .../python-modules/colormath/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/colormath/default.nix diff --git a/pkgs/development/python-modules/colormath/default.nix b/pkgs/development/python-modules/colormath/default.nix new file mode 100644 index 000000000000..80f58250be4d --- /dev/null +++ b/pkgs/development/python-modules/colormath/default.nix @@ -0,0 +1,32 @@ +{ buildPythonPackage +, fetchFromGitHub +, networkx +, nose +, numpy +, lib +, pytest +}: + +buildPythonPackage rec { + pname = "colormath"; + version = "3.0.0"; + + src = fetchFromGitHub { + owner = "gtaylor"; + rev = "3.0.0"; + repo = "python-colormath"; + sha256 = "1nqf5wy8ikx2g684khzvjc4iagkslmbsxxwilbv4jpaznr9lahdl"; + }; + + propagatedBuildInputs = [ networkx numpy ]; + + checkInputs = [ nose ]; + checkPhase = "nosetests"; + + meta = with lib; { + description = "Color math and conversion library"; + homepage = "https://github.com/gtaylor/python-colormath"; + license = licenses.bsd2; + maintainers = with maintainers; [ jonathanreeve ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 53c140f2fce7..78e598e8b36d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1806,6 +1806,8 @@ in { colour = callPackage ../development/python-modules/colour {}; + colormath = callPackage ../development/python-modules/colormath {}; + configshell = callPackage ../development/python-modules/configshell { }; consonance = callPackage ../development/python-modules/consonance { };