Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, python 3, buildPythonPackage 4, fetchPypi 5, pytest 6, python-utils 7, sphinx 8, flake8 9, pytestpep8 10, pytest-flakes 11, pytestcov 12, pytestcache 13, pytestrunner 14, freezegun 15}: 16 17buildPythonPackage rec { 18 pname = "progressbar2"; 19 version = "3.51.4"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "0dnfw8mdrz78gck4ibnv64cinbp5f7kw349wjgpwv53z6p7jiwhk"; 24 }; 25 26 propagatedBuildInputs = [ python-utils ]; 27 nativeBuildInputs = [ pytestrunner ]; 28 checkInputs = [ 29 pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov 30 pytestcache freezegun 31 ]; 32 # ignore tests on the nix wrapped setup.py 33 checkPhase = '' 34 runHook preCheck 35 ${python.interpreter} setup.py test 36 runHook postCheck 37 ''; 38 39 meta = with stdenv.lib; { 40 homepage = "https://progressbar-2.readthedocs.io/en/latest/"; 41 description = "Text progressbar library for python"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ ashgillman turion ]; 44 }; 45}