aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pygogo/default.nix
blob: 89031c9610aa0a10a6e2526d09ef4e52bd8cb6a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
, pkutils
  # Check Inputs
, pytestCheckHook
, nose
}:

buildPythonPackage rec {
  pname = "pygogo";
  version = "0.13.2";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "reubano";
    repo = "pygogo";
    rev = "v${version}";
    sha256 = "19rdf4sjrm5lp1vq1bki21a9lrkzz8sgrfwgjdkq4sgy90hn1jn9";
  };

  nativeBuildInputs = [ pkutils ];

  checkInputs = [ nose ];
  checkPhase = "nosetests";
  pythonImportsCheck = [ "pygogo" ];

  meta = with lib; {
    description = "A Python logging library with super powers";
    homepage = "https://github.com/reubano/pygogo/";
    license = licenses.mit;
    maintainers = with maintainers; [ drewrisinger ];
  };
}