depot/third_party/nixpkgs/pkgs/development/python-modules/pkutils/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

56 lines
931 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pythonOlder
, pythonRelaxDepsHook
, 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"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
semver
];
nativeCheckInputs = [
nose
];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
pythonImportsCheck = [
"pkutils"
];
meta = with lib; {
description = "A Python packaging utility library";
homepage = "https://github.com/reubano/pkutils/";
license = licenses.mit;
maintainers = with maintainers; [ drewrisinger ];
};
}