summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hsluv/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-05-16 15:49:47 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-16 14:35:30 -0700
commit195ee1e14b6356f81f53505dc8a03875fc369df0 (patch)
treeced9caf77fc1fe3ab55d09b8c45306c20345f223 /pkgs/development/python-modules/hsluv/default.nix
parentnfstrace: fix build error (diff)
downloadnixpkgs-195ee1e14b6356f81f53505dc8a03875fc369df0.tar.gz
python3Packages.hsluv: init at 5.0.2
Diffstat (limited to 'pkgs/development/python-modules/hsluv/default.nix')
-rw-r--r--pkgs/development/python-modules/hsluv/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hsluv/default.nix b/pkgs/development/python-modules/hsluv/default.nix
new file mode 100644
index 000000000000..b6573db53268
--- /dev/null
+++ b/pkgs/development/python-modules/hsluv/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+ pname = "hsluv";
+ version = "5.0.2";
+ disabled = pythonOlder "3.6";
+
+ src = fetchFromGitHub {
+ owner = "hsluv";
+ repo = "hsluv-python";
+ rev = "v${version}";
+ sha256 = "0r0w8ycjwfg3pmzjghzrs0lkam93fzvgiqvrwh3nl9jnqlpw7v7j";
+ };
+
+ checkInputs = [
+ pytestCheckHook
+ ];
+
+ pythonImportsCheck = [ "hsluv" ];
+
+ meta = with lib; {
+ description = "Python implementation of HSLuv";
+ homepage = "https://github.com/hsluv/hsluv-python";
+ license = licenses.mit;
+ maintainers = with maintainers; [ fab ];
+ };
+}