
This treewide change targets Python packages that specifies pytest flags with pytestFlagsArray, and whose flags cannot be consructed by other pytestCheckHook-honoured arguments. Use the __structuredAttrs-agnostic argument pytestFlags instead of the deprecated pytestFlagsArray. For flags with option arguments, join each flag and their option argument into a single command-line argument following POSIX Utility Argument Syntax[1] for easier overriding (remove/replace). Examples: * [ "-W" "ignore:message:WarningClass" ] -> [ "-Wignore:message:WarningClass" ] * [ "--reruns" "3" ] -> [ "--reruns=3" ] [1]: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
pytest-timeout,
|
|
numpy,
|
|
pandas,
|
|
rich,
|
|
tkinter,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tqdm";
|
|
version = "4.67.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-+K75xSwIwTpl8w6jT05arD/Ro0lZh51+WeYwJyhmJ/I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
# tests of optional features
|
|
numpy
|
|
rich
|
|
tkinter
|
|
pandas
|
|
];
|
|
|
|
pytestFlags = [
|
|
"-Wignore::FutureWarning"
|
|
"-Wignore::DeprecationWarning"
|
|
];
|
|
|
|
# Remove performance testing.
|
|
# Too sensitive for on Hydra.
|
|
disabledTests = [ "perf" ];
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
pythonImportsCheck = [ "tqdm" ];
|
|
|
|
meta = with lib; {
|
|
description = "Fast, Extensible Progress Meter";
|
|
mainProgram = "tqdm";
|
|
homepage = "https://github.com/tqdm/tqdm";
|
|
changelog = "https://tqdm.github.io/releases/";
|
|
license = with licenses; [ mit ];
|
|
};
|
|
}
|