1{ lib
2, stdenv
3, buildPythonPackage
4, fetchPypi
5, setuptools-scm
6, pytestCheckHook
7, pytest-asyncio
8, pytest-timeout
9, numpy
10, pandas
11, rich
12, tkinter
13}:
14
15buildPythonPackage rec {
16 pname = "tqdm";
17 version = "4.62.3";
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "d359de7217506c9851b7869f3708d8ee53ed70a1b8edbba4dbcb47442592920d";
22 };
23
24 nativeBuildInputs = [
25 setuptools-scm
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 pytest-asyncio
31 pytest-timeout
32 # tests of optional features
33 numpy
34 rich
35 tkinter
36 ] ++
37 # pandas is not supported on i686 or risc-v
38 lib.optional (!stdenv.isi686 && !stdenv.hostPlatform.isRiscV) pandas;
39
40 # Remove performance testing.
41 # Too sensitive for on Hydra.
42 disabledTests = [
43 "perf"
44 ];
45
46 LC_ALL="en_US.UTF-8";
47
48 pythonImportsCheck = [ "tqdm" ];
49
50 meta = with lib; {
51 description = "A Fast, Extensible Progress Meter";
52 homepage = "https://github.com/tqdm/tqdm";
53 changelog = "https://tqdm.github.io/releases/";
54 license = with licenses; [ mit ];
55 maintainers = with maintainers; [ fridh ];
56 };
57}