5271abdb86
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.7-progressbar2/versions (cherry picked from commit dfd04596fe5eea2cfa736660cad10ddf8b2c8f0b)
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ stdenv
|
|
, python
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, python-utils
|
|
, sphinx
|
|
, flake8
|
|
, pytestpep8
|
|
, pytest-flakes
|
|
, pytestcov
|
|
, pytestcache
|
|
, pytestrunner
|
|
, freezegun
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "progressbar2";
|
|
version = "3.39.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0fgy4327xzn232br4as74r6ddg5v6ycmfwga7xybp4s1w0cm8nwf";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm -r tests/__pycache__
|
|
rm tests/*.pyc
|
|
'';
|
|
|
|
propagatedBuildInputs = [ python-utils ];
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
checkInputs = [
|
|
pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov
|
|
pytestcache freezegun
|
|
];
|
|
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} setup.py test --addopts "--ignore=.eggs"
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://progressbar-2.readthedocs.io/en/latest/;
|
|
description = "Text progressbar library for python";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
};
|
|
}
|