2017-05-01 04:06:38 +00:00
|
|
|
{ lib
|
2021-04-16 13:58:49 +00:00
|
|
|
, stdenv
|
2017-05-01 04:06:38 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-03 10:09:11 +00:00
|
|
|
, setuptools-scm
|
2020-11-30 17:05:40 +00:00
|
|
|
, pytestCheckHook
|
2021-02-26 18:09:49 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-timeout
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, rich
|
|
|
|
, tkinter
|
2017-05-01 04:06:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tqdm";
|
2021-10-08 22:23:17 +00:00
|
|
|
version = "4.62.3";
|
2017-05-01 04:06:38 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-08 22:23:17 +00:00
|
|
|
sha256 = "d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d";
|
2017-05-01 04:06:38 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 17:05:40 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-03 10:09:11 +00:00
|
|
|
setuptools-scm
|
2020-11-30 17:05:40 +00:00
|
|
|
];
|
2017-05-01 04:06:38 +00:00
|
|
|
|
2021-02-26 18:09:49 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-timeout
|
|
|
|
# tests of optional features
|
|
|
|
numpy
|
|
|
|
rich
|
|
|
|
tkinter
|
2021-04-16 13:58:49 +00:00
|
|
|
] ++
|
2021-06-09 03:34:10 +00:00
|
|
|
# pandas is not supported on i686 or risc-v
|
|
|
|
lib.optional (!stdenv.isi686 && !stdenv.hostPlatform.isRiscV) pandas;
|
2017-11-25 07:49:32 +00:00
|
|
|
|
2022-01-16 15:10:55 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# pytest-asyncio 0.17.0 compat; https://github.com/tqdm/tqdm/issues/1289
|
|
|
|
"--asyncio-mode=strict"
|
|
|
|
];
|
|
|
|
|
2020-11-30 17:05:40 +00:00
|
|
|
# Remove performance testing.
|
|
|
|
# Too sensitive for on Hydra.
|
2021-04-16 14:18:32 +00:00
|
|
|
disabledTests = [
|
|
|
|
"perf"
|
|
|
|
];
|
2017-05-01 04:06:38 +00:00
|
|
|
|
2020-11-30 17:05:40 +00:00
|
|
|
LC_ALL="en_US.UTF-8";
|
2018-08-17 02:10:19 +00:00
|
|
|
|
2021-04-16 14:18:32 +00:00
|
|
|
pythonImportsCheck = [ "tqdm" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-05-01 04:06:38 +00:00
|
|
|
description = "A Fast, Extensible Progress Meter";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tqdm/tqdm";
|
2021-04-16 14:18:32 +00:00
|
|
|
changelog = "https://tqdm.github.io/releases/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2017-05-01 04:06:38 +00:00
|
|
|
};
|
|
|
|
}
|