1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 packaging,
7 pytestCheckHook,
8 simplejson,
9}:
10
11buildPythonPackage rec {
12 pname = "marshmallow";
13 version = "3.26.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "marshmallow-code";
18 repo = "marshmallow";
19 tag = version;
20 hash = "sha256-l5pEhv8D6jRlU24SlsGQEkXda/b7KUdP9mAqrZCbl38=";
21 };
22
23 nativeBuildInputs = [ flit-core ];
24
25 propagatedBuildInputs = [ packaging ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 simplejson
30 ];
31
32 pythonImportsCheck = [ "marshmallow" ];
33
34 meta = with lib; {
35 description = "Library for converting complex objects to and from simple Python datatypes";
36 homepage = "https://github.com/marshmallow-code/marshmallow";
37 changelog = "https://github.com/marshmallow-code/marshmallow/blob/${version}/CHANGELOG.rst";
38 license = licenses.mit;
39 maintainers = with maintainers; [ cript0nauta ];
40 };
41}