summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-utils/default.nix
blob: 37c15c07537e014722143167ff4f3fb06ca7c035 (plain) (blame)
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
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:

buildPythonPackage rec {
  pname = "python-utils";
  version = "2.2.0";
  name = pname + "-" + version;

  src = fetchFromGitHub {
    owner = "WoLpH";
    repo = "python-utils";
    rev = "v${version}";
    sha256 = "1i3q9frai08nvrcmh4dg4rr0grncm68w2c097z5g1mfwdf9sv7df";
  };

  checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];

  checkPhase = ''
    rm nix_run_setup.py
    py.test
  '';

  propagatedBuildInputs = [ six ];

  meta = with lib; {
    description = "Module with some convenient utilities";
    homepage = "https://github.com/WoLpH/python-utils";
    license = licenses.bsd3;
  };
}