nixpkgs/pkgs/development/python-modules/python-utils/default.nix

28 lines
722 B
Nix
Raw Normal View History

{ 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";
};
2018-01-12 19:47:40 +00:00
postPatch = ''
2019-01-22 15:02:12 +00:00
rm -r tests/__pycache__
rm tests/*.pyc
substituteInPlace pytest.ini --replace "--pep8" ""
2018-01-12 19:47:40 +00:00
'';
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;
};
}