lol

Merge pull request #33920 from ashgillman/add-progressbar2

pythonPackages.progressbar2: init at 3.12.0

authored by

Frederik Rietdijk and committed by
GitHub
5ab499d2 b8ab87aa

+52
+50
pkgs/development/python-modules/progressbar2/default.nix
··· 1 + { stdenv 2 + , python 3 + , buildPythonPackage 4 + , fetchFromGitHub 5 + , isPy3k 6 + , pytest 7 + , python-utils 8 + , sphinx 9 + , coverage 10 + , execnet 11 + , flake8 12 + , pytestpep8 13 + , pytestflakes 14 + , pytestcov 15 + , pytestcache 16 + , pep8 17 + }: 18 + 19 + buildPythonPackage rec { 20 + pname = "progressbar2"; 21 + version = "3.12.0"; 22 + 23 + # Use source from GitHub, PyPI is missing tests 24 + # https://github.com/WoLpH/python-progressbar/issues/151 25 + src = fetchFromGitHub { 26 + owner = "WoLpH"; 27 + repo = "python-progressbar"; 28 + rev = "v${version}"; 29 + sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f"; 30 + }; 31 + 32 + propagatedBuildInputs = [ python-utils ]; 33 + checkInputs = [ 34 + pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov 35 + pytestcache pep8 36 + ]; 37 + # ignore tests on the nix wrapped setup.py and don't flake .eggs directory 38 + checkPhase = '' 39 + runHook preCheck 40 + ${python.interpreter} setup.py test --addopts "--ignore=nix_run_setup.py --ignore=.eggs" 41 + runHook postCheck 42 + ''; 43 + 44 + meta = with stdenv.lib; { 45 + homepage = https://progressbar-2.readthedocs.io/en/latest/; 46 + description = "Text progressbar library for python"; 47 + license = licenses.bsd3; 48 + maintainers = with maintainers; [ ashgillman ]; 49 + }; 50 + }
+2
pkgs/top-level/python-packages.nix
··· 14568 14568 }; 14569 14569 }); 14570 14570 14571 + progressbar2 = callPackage ../development/python-modules/progressbar2 { }; 14572 + 14571 14573 ldap = callPackage ../development/python-modules/ldap { 14572 14574 inherit (pkgs) openldap cyrus_sasl openssl; 14573 14575 };