depot/third_party/nixpkgs/pkgs/development/python-modules/hsluv/default.nix

32 lines
672 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hsluv";
version = "5.0.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hsluv";
repo = "hsluv-python";
rev = "v${version}";
hash = "sha256-bjivmPTU3Gp3pcC0ru4GSZANdhPqS1QSTMeiPGN8GCI=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hsluv" ];
meta = with lib; {
description = "Python implementation of HSLuv";
homepage = "https://github.com/hsluv/hsluv-python";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}