at 24.05-pre 646 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "hsluv"; 10 version = "5.0.4"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "hsluv"; 15 repo = "hsluv-python"; 16 rev = "v${version}"; 17 hash = "sha256-bjivmPTU3Gp3pcC0ru4GSZANdhPqS1QSTMeiPGN8GCI="; 18 }; 19 20 nativeCheckInputs = [ 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}