mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
734de7a70b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-python-utils/versions
37 lines
928 B
Nix
37 lines
928 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-utils";
|
|
version = "2.3.0";
|
|
name = pname + "-" + version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WoLpH";
|
|
repo = "python-utils";
|
|
rev = "v${version}";
|
|
sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
|
|
};
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
|
|
|
|
postPatch = ''
|
|
# pytest-runner is only actually required in checkPhase
|
|
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
|
|
'';
|
|
|
|
# Tests failing
|
|
doCheck = false;
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
meta = with lib; {
|
|
description = "Module with some convenient utilities";
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|