mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, numpy
|
|
, pandas
|
|
, rich
|
|
, tkinter
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tqdm";
|
|
version = "4.64.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-X09oKgBJUcG0ULx1PHEOkoDFdGzm/+3uJT3by/VM8eQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
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 = [
|
|
# pytest-asyncio 0.17.0 compat; https://github.com/tqdm/tqdm/issues/1289
|
|
"--asyncio-mode=strict"
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|