nixpkgs/pkgs/development/python-modules/hsluv/default.nix
2022-05-26 21:41:51 +02:00

33 lines
642 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "hsluv";
version = "5.0.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hsluv";
repo = "hsluv-python";
rev = "v${version}";
sha256 = "sha256-p3KD+zhHCOs/rLUVf1IkW/isfpUPQstB2VHGmZ/aEPU=";
};
checkInputs = [
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 ];
};
}