depot/third_party/nixpkgs/pkgs/development/python-modules/tqdm/default.nix

71 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, setuptools
, setuptools-scm
, wheel
, pytestCheckHook
, pytest-asyncio
, pytest-timeout
, numpy
, pandas
, rich
, tkinter
}:
buildPythonPackage rec {
pname = "tqdm";
version = "4.66.1";
format = "pyproject";
# https://github.com/tqdm/tqdm/issues/1537
disabled = pythonAtLeast "3.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-2I5lH5242FUaYlVtPP+eMDQnTKXWbpMZfPJJDi3Lacc=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytest-timeout
# tests of optional features
numpy
rich
tkinter
] ++
# pandas is not supported on i686 or risc-v
lib.optional (!stdenv.isi686 && !stdenv.hostPlatform.isRiscV) pandas;
pytestFlagsArray = [
"-W" "ignore::FutureWarning"
];
# Remove performance testing.
# Too sensitive for on Hydra.
disabledTests = [
"perf"
];
LC_ALL="en_US.UTF-8";
pythonImportsCheck = [ "tqdm" ];
meta = with lib; {
description = "A Fast, Extensible Progress Meter";
homepage = "https://github.com/tqdm/tqdm";
changelog = "https://tqdm.github.io/releases/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fridh ];
};
}