depot/third_party/nixpkgs/pkgs/development/python-modules/pkutils/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

45 lines
840 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nose3,
pythonOlder,
semver,
}:
buildPythonPackage rec {
pname = "pkutils";
version = "3.0.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "reubano";
repo = "pkutils";
rev = "refs/tags/v${version}";
hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE=";
};
pythonRelaxDeps = [ "semver" ];
propagatedBuildInputs = [ semver ];
nativeCheckInputs = [ nose3 ];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
pythonImportsCheck = [ "pkutils" ];
meta = with lib; {
description = "Python packaging utility library";
homepage = "https://github.com/reubano/pkutils/";
license = licenses.mit;
maintainers = with maintainers; [ drewrisinger ];
};
}