python.pkgs.progressbar2: 3.12.0 -> 3.39.2

This commit is contained in:
Robert Schütz
2019-01-22 16:19:52 +01:00
parent d56611b25b
commit 6672304418
@@ -1,39 +1,38 @@
{ stdenv { stdenv
, python , python
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchPypi
, pytest , pytest
, python-utils , python-utils
, sphinx , sphinx
, coverage
, execnet
, flake8 , flake8
, pytestpep8 , pytestpep8
, pytestflakes , pytestflakes
, pytestcov , pytestcov
, pytestcache , pytestcache
, pep8
, pytestrunner , pytestrunner
, freezegun
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "progressbar2"; pname = "progressbar2";
version = "3.12.0"; version = "3.39.2";
# Use source from GitHub, PyPI is missing tests src = fetchPypi {
# https://github.com/WoLpH/python-progressbar/issues/151 inherit pname version;
src = fetchFromGitHub { sha256 = "6eb5135b987caca4212d2c7abc2923d4ad5ba18bb34ccbe7044b3628f52efc2c";
owner = "WoLpH";
repo = "python-progressbar";
rev = "v${version}";
sha256 = "1gk45sh8cd0kkyvzcvx95z6nlblmyx0x189mjfv3vfa43cr1mb0f";
}; };
postPatch = ''
rm -r tests/__pycache__
rm tests/*.pyc
'';
propagatedBuildInputs = [ python-utils ]; propagatedBuildInputs = [ python-utils ];
nativeBuildInputs = [ pytestrunner ]; nativeBuildInputs = [ pytestrunner ];
checkInputs = [ checkInputs = [
pytest sphinx coverage execnet flake8 pytestpep8 pytestflakes pytestcov pytest sphinx flake8 pytestpep8 pytestflakes pytestcov
pytestcache pep8 pytestcache freezegun
]; ];
# ignore tests on the nix wrapped setup.py and don't flake .eggs directory # ignore tests on the nix wrapped setup.py and don't flake .eggs directory
checkPhase = '' checkPhase = ''