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,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
mypy-extensions,
|
|
numpy,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
toolz,
|
|
typing-extensions,
|
|
wrapt,
|
|
attrs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psygnal";
|
|
version = "0.13.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyapp-kit";
|
|
repo = "psygnal";
|
|
tag = "v${version}";
|
|
hash = "sha256-ZEN8S2sI1usXl5A1Ow1+l4BBB6qNnlVt/nvFtAX4maY=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
mypy-extensions
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pydantic
|
|
pytestCheckHook
|
|
toolz
|
|
wrapt
|
|
attrs
|
|
];
|
|
|
|
pytestFlags = [
|
|
"-Wignore::pydantic.warnings.PydanticDeprecatedSince211"
|
|
];
|
|
|
|
pythonImportsCheck = [ "psygnal" ];
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of Qt Signals";
|
|
homepage = "https://github.com/pyapp-kit/psygnal";
|
|
changelog = "https://github.com/pyapp-kit/psygnal/blob/${src.tag}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
};
|
|
}
|