1{ lib
2, pythonOlder
3, buildPythonPackage
4, fetchFromGitHub
5, pkutils
6 # Check Inputs
7, nose
8}:
9
10buildPythonPackage rec {
11 pname = "pygogo";
12 version = "0.13.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "reubano";
19 repo = "pygogo";
20 rev = "v${version}";
21 sha256 = "19rdf4sjrm5lp1vq1bki21a9lrkzz8sgrfwgjdkq4sgy90hn1jn9";
22 };
23
24 nativeBuildInputs = [
25 pkutils
26 ];
27
28 checkInputs = [
29 nose
30 ];
31
32 postPatch = ''
33 substituteInPlace dev-requirements.txt \
34 --replace "pkutils>=1.0.0,<2.0.0" "pkutils>=1.0.0"
35 '';
36
37 checkPhase = ''
38 runHook preCheck
39 nosetests
40 runHook postCheck
41 '';
42
43 pythonImportsCheck = [
44 "pygogo"
45 ];
46
47 meta = with lib; {
48 description = "Python logging library";
49 homepage = "https://github.com/reubano/pygogo/";
50 license = licenses.mit;
51 maintainers = with maintainers; [ drewrisinger ];
52 };
53}