Merge pull request #33920 from ashgillman/add-progressbar2

pythonPackages.progressbar2: init at 3.12.0
This commit is contained in:
Frederik Rietdijk 2018-01-17 10:05:52 +01:00 committed by GitHub
commit 5ab499d2c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ stdenv
, python
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytest
, python-utils
, sphinx
, coverage
, execnet
, flake8
, pytestpep8
, pytestflakes
, pytestcov
, pytestcache
, pep8
}:
buildPythonPackage rec {
pname = "progressbar2";
version = "3.12.0";
# Use source from GitHub, PyPI is missing tests
# https://github.com/WoLpH/python-progressbar/issues/151
src = fetchFromGitHub {
owner = "WoLpH";
repo = "python-progressbar";
rev = "v${version}";
sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f";
};
propagatedBuildInputs = [ python-utils ];
checkInputs = [
pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov
pytestcache pep8
];
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory
checkPhase = ''
runHook preCheck
${python.interpreter} setup.py test --addopts "--ignore=nix_run_setup.py --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 ];
};
}

View file

@ -14568,6 +14568,8 @@ in {
}; };
}); });
progressbar2 = callPackage ../development/python-modules/progressbar2 { };
ldap = callPackage ../development/python-modules/ldap { ldap = callPackage ../development/python-modules/ldap {
inherit (pkgs) openldap cyrus_sasl openssl; inherit (pkgs) openldap cyrus_sasl openssl;
}; };