about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-utils/default.nix
blob: 60160d270b75f39757f9041ae92daad43d334b53 (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
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytestrunner, pytestcov, pytest-flakes, sphinx, six }:

buildPythonPackage rec {
  pname = "python-utils";
  version = "2.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj";
  };

  postPatch = ''
    rm -r tests/__pycache__
    rm tests/*.pyc
    substituteInPlace pytest.ini --replace "--pep8" ""
  '';

  checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ];

  propagatedBuildInputs = [ six ];

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