blob: 2b3d7b7deee89250909d6ef19874c958e48ed81e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
flit-core,
# dependencies
backports-datetime-fromisoformat,
typing-extensions,
# tests
pytestCheckHook,
simplejson,
}:
buildPythonPackage rec {
pname = "marshmallow";
version = "4.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "marshmallow-code";
repo = "marshmallow";
tag = version;
hash = "sha256-qEjq1tEWoYqlN7L/cECnpFGPinSdZXexJHZfXreLAZc=";
};
build-system = [ flit-core ];
dependencies = lib.optionals (pythonOlder "3.11") [
backports-datetime-fromisoformat
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
simplejson
];
disabledTests = lib.optionals stdenv.hostPlatform.isx86_32 [
# Raises a slightly different error than upstream expects: 'Timestamp is too large' instead of 'out of range'
"test_from_timestamp_with_overflow_value"
];
pythonImportsCheck = [ "marshmallow" ];
meta = {
description = "Library for converting complex objects to and from simple Python datatypes";
homepage = "https://github.com/marshmallow-code/marshmallow";
changelog = "https://github.com/marshmallow-code/marshmallow/blob/${version}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ cript0nauta ];
};
}
|