1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, pythonOlder
6, semver
7}:
8
9buildPythonPackage rec {
10 pname = "pkutils";
11 version = "3.0.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "reubano";
18 repo = "pkutils";
19 rev = "v${version}";
20 hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE=";
21 };
22
23 propagatedBuildInputs = [
24 semver
25 ];
26
27 checkInputs = [
28 nose
29 ];
30
31 checkPhase = ''
32 runHook preCheck
33 nosetests
34 runHook postCheck
35 '';
36
37 pythonImportsCheck = [
38 "pkutils"
39 ];
40
41 meta = with lib; {
42 description = "A Python packaging utility library";
43 homepage = "https://github.com/reubano/pkutils/";
44 license = licenses.mit;
45 maintainers = with maintainers; [ drewrisinger ];
46 };
47}