at 22.05-pre 643 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "hsluv"; 10 version = "5.0.2"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "hsluv"; 15 repo = "hsluv-python"; 16 rev = "v${version}"; 17 sha256 = "0r0w8ycjwfg3pmzjghzrs0lkam93fzvgiqvrwh3nl9jnqlpw7v7j"; 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}