1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 flit-core,
7 marshmallow,
8 packaging,
9 sqlalchemy,
10 pytest-lazy-fixtures,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "marshmallow-sqlalchemy";
16 version = "1.4.2";
17 pyproject = true;
18
19 disabled = pythonOlder "3.9";
20
21 src = fetchPypi {
22 pname = "marshmallow_sqlalchemy";
23 inherit version;
24 hash = "sha256-ZBAwS/mOwm6jXz+dPO6C5R/Qk8Q0YSrdMqC9zbVmj3w=";
25 };
26
27 build-system = [ flit-core ];
28
29 propagatedBuildInputs = [
30 marshmallow
31 packaging
32 sqlalchemy
33 ];
34
35 pythonImportsCheck = [ "marshmallow_sqlalchemy" ];
36
37 nativeCheckInputs = [
38 pytest-lazy-fixtures
39 pytestCheckHook
40 ];
41
42 meta = with lib; {
43 description = "SQLAlchemy integration with marshmallow";
44 homepage = "https://github.com/marshmallow-code/marshmallow-sqlalchemy";
45 changelog = "https://github.com/marshmallow-code/marshmallow-sqlalchemy/blob/${version}/CHANGELOG.rst";
46 license = licenses.mit;
47 maintainers = [ ];
48 };
49}