Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pkutils / default.nix
blobe3957533ea994e343399766eb9d9e8eeff4ccd8f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , nose3
5 , pythonOlder
6 , pythonRelaxDepsHook
7 , semver
8 }:
10 buildPythonPackage rec {
11   pname = "pkutils";
12   version = "3.0.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "reubano";
19     repo = "pkutils";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE=";
22   };
24   pythonRelaxDeps = [
25     "semver"
26   ];
28   nativeBuildInputs = [
29     pythonRelaxDepsHook
30   ];
32   propagatedBuildInputs = [
33     semver
34   ];
36   nativeCheckInputs = [
37     nose3
38   ];
40   checkPhase = ''
41     runHook preCheck
42     nosetests
43     runHook postCheck
44   '';
46   pythonImportsCheck = [
47     "pkutils"
48   ];
50   meta = with lib; {
51     description = "A Python packaging utility library";
52     homepage = "https://github.com/reubano/pkutils/";
53     license = licenses.mit;
54     maintainers = with maintainers; [ drewrisinger ];
55   };