Files
nixpkgs/pkgs/development/python-modules/progressbar2/default.nix
T

46 lines
967 B
Nix
Raw Normal View History

{ stdenv
, python
, buildPythonPackage
2019-01-22 15:53:25 +01:00
, fetchPypi
, pytest
, python-utils
, sphinx
, flake8
, pytestpep8
, pytest-flakes
, pytestcov
, pytestcache
2018-01-17 11:46:27 +01:00
, pytestrunner
2019-01-22 15:53:25 +01:00
, freezegun
}:
buildPythonPackage rec {
pname = "progressbar2";
version = "3.51.4";
2019-01-22 15:53:25 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "0dnfw8mdrz78gck4ibnv64cinbp5f7kw349wjgpwv53z6p7jiwhk";
};
propagatedBuildInputs = [ python-utils ];
2018-01-17 11:46:27 +01:00
nativeBuildInputs = [ pytestrunner ];
checkInputs = [
pytest sphinx flake8 pytestpep8 pytest-flakes pytestcov
2019-01-22 15:53:25 +01:00
pytestcache freezegun
];
2020-06-25 15:36:07 +02:00
# ignore tests on the nix wrapped setup.py
checkPhase = ''
runHook preCheck
2020-06-25 15:36:07 +02:00
${python.interpreter} setup.py test
runHook postCheck
'';
meta = with stdenv.lib; {
homepage = "https://progressbar-2.readthedocs.io/en/latest/";
description = "Text progressbar library for python";
license = licenses.bsd3;
2020-06-25 15:36:07 +02:00
maintainers = with maintainers; [ ashgillman turion ];
};
}