Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 45 lines 1.0 kB view raw
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.47.0"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "7538d02045a1fd3aa2b2834bfda463da8755bd3ff050edc6c5ddff3bc616215f"; 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 and don't flake .eggs directory 33 checkPhase = '' 34 runHook preCheck 35 ${python.interpreter} setup.py test --addopts "--ignore=.eggs" 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 ]; 44 }; 45}