summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hsluv/default.nix
blob: c86fca46e197697372cf935c68d2b64e4317d0c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "hsluv";
  version = "5.0.4";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "hsluv";
    repo = "hsluv-python";
    rev = "v${version}";
    hash = "sha256-bjivmPTU3Gp3pcC0ru4GSZANdhPqS1QSTMeiPGN8GCI=";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "hsluv" ];

  meta = {
    description = "Python implementation of HSLuv";
    homepage = "https://github.com/hsluv/hsluv-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}