1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "hsluv";
11 version = "5.0.4";
12 format = "setuptools";
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "hsluv";
17 repo = "hsluv-python";
18 rev = "v${version}";
19 hash = "sha256-bjivmPTU3Gp3pcC0ru4GSZANdhPqS1QSTMeiPGN8GCI=";
20 };
21
22 nativeCheckInputs = [ pytestCheckHook ];
23
24 pythonImportsCheck = [ "hsluv" ];
25
26 meta = with lib; {
27 description = "Python implementation of HSLuv";
28 homepage = "https://github.com/hsluv/hsluv-python";
29 license = licenses.mit;
30 maintainers = with maintainers; [ fab ];
31 };
32}