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

33 lines
646 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "hsluv";
version = "5.0.4";
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 ];
};
}