1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "hsluv";
10 version = "5.0.3";
11 disabled = pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "hsluv";
15 repo = "hsluv-python";
16 rev = "v${version}";
17 sha256 = "sha256-p3KD+zhHCOs/rLUVf1IkW/isfpUPQstB2VHGmZ/aEPU=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
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}