python311Packages.marshmallow-enum: test with pytest 7

and use PEP517 builder.
This commit is contained in:
Martin Weinelt 2024-03-24 23:25:40 +01:00
parent f8107134fa
commit f32a6a6d7c
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 10 additions and 17 deletions

View File

@ -1,16 +1,15 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, marshmallow
, pytestCheckHook
, isPy27
, enum34
, pytest7CheckHook
}:
buildPythonPackage rec {
pname = "marshmallow-enum";
version = "1.5.1";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "justanr";
@ -23,22 +22,16 @@ buildPythonPackage rec {
sed -i '/addopts/d' tox.ini
'';
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
marshmallow
] ++ lib.optionals isPy27 [ enum34 ];
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
# pytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
"-W" "ignore::pytest.PytestRemovedIn8Warning"
];
disabledTests = [
"test_custom_error_in_deserialize_by_name"
"test_custom_error_in_deserialize_by_value"
pytest7CheckHook
];
meta = with lib; {