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