mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
833 B
Nix
48 lines
833 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
dill,
|
|
freezegun,
|
|
pytestCheckHook,
|
|
python-utils,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "progressbar2";
|
|
version = "4.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZmLLYkiG7THrlNr2HidYO1FE68c4Ohe64Hb49PWQiPs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/-cov/d" pytest.ini
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [ python-utils ];
|
|
|
|
nativeCheckInputs = [
|
|
dill
|
|
freezegun
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "progressbar" ];
|
|
|
|
meta = {
|
|
description = "Text progressbar library";
|
|
homepage = "https://progressbar-2.readthedocs.io/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ ashgillman ];
|
|
};
|
|
}
|