2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-04-17 00:35:05 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-12-07 07:45:13 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-timeout
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, rich
|
|
|
|
, tkinter
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tqdm";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "4.61.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "24be966933e942be5f074c29755a95b315c69a91f839a29139bf26ffffe2d3fd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-12-07 07:45:13 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-timeout
|
|
|
|
# tests of optional features
|
|
|
|
numpy
|
|
|
|
rich
|
|
|
|
tkinter
|
2021-04-17 00:35:05 +00:00
|
|
|
] ++
|
2021-06-28 23:13:55 +00:00
|
|
|
# pandas is not supported on i686 or risc-v
|
|
|
|
lib.optional (!stdenv.isi686 && !stdenv.hostPlatform.isRiscV) pandas;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
# Remove performance testing.
|
|
|
|
# Too sensitive for on Hydra.
|
2021-04-25 03:57:28 +00:00
|
|
|
disabledTests = [
|
|
|
|
"perf"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
LC_ALL="en_US.UTF-8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
pythonImportsCheck = [ "tqdm" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Fast, Extensible Progress Meter";
|
|
|
|
homepage = "https://github.com/tqdm/tqdm";
|
2021-04-25 03:57:28 +00:00
|
|
|
changelog = "https://tqdm.github.io/releases/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|