
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
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
attrs,
|
|
buildPythonPackage,
|
|
entry-points-txt,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
headerparser,
|
|
jsonschema,
|
|
packaging,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
pythonOlder,
|
|
readme-renderer,
|
|
setuptools,
|
|
wheel-filename,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wheel-inspect";
|
|
version = "1.7.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jwodder";
|
|
repo = "wheel-inspect";
|
|
tag = "v${version}";
|
|
hash = "sha256-Mdw9IlY/2qDlb5FumNH+VHmg7vrUzo3vn+03QsUGgo8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"entry-points-txt"
|
|
"headerparser"
|
|
];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
attrs
|
|
entry-points-txt
|
|
headerparser
|
|
packaging
|
|
readme-renderer
|
|
wheel-filename
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
setuptools
|
|
pytestCheckHook
|
|
pytest-cov-stub
|
|
jsonschema
|
|
];
|
|
|
|
pythonImportsCheck = [ "wheel_inspect" ];
|
|
|
|
pytestFlags = [
|
|
"-Wignore::DeprecationWarning"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Extract information from wheels";
|
|
homepage = "https://github.com/jwodder/wheel-inspect";
|
|
changelog = "https://github.com/wheelodex/wheel-inspect/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ayazhafiz ];
|
|
mainProgram = "wheel2json";
|
|
};
|
|
}
|