3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #154908 from fabaff/fix-marshmallow-dataclass

python310Packages.marshmallow-dataclass: ignore DeprecationWarning
This commit is contained in:
Fabian Affolter 2022-01-13 20:12:00 +01:00 committed by GitHub
commit 756aa43f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, marshmallow
, marshmallow-enum
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, typeguard
, typing-inspect
@ -34,7 +35,20 @@ buildPythonPackage rec {
typeguard
];
pythonImportsCheck = [ "marshmallow_dataclass" ];
pytestFlagsArray = [
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
"-W"
"ignore::DeprecationWarning"
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# TypeError: UserId is not a dataclass and cannot be turned into one.
"test_newtype"
];
pythonImportsCheck = [
"marshmallow_dataclass"
];
meta = with lib; {
description = "Automatic generation of marshmallow schemas from dataclasses";