depot/third_party/nixpkgs/pkgs/development/python-modules/python-utils/default.nix
Default email b6d97fd731 Project import generated by Copybara.
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
2020-12-25 14:55:36 +01:00

27 lines
722 B
Nix

{ 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;
};
}