1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 flit-core,
7 marshmallow,
8 packaging,
9 sqlalchemy,
10 pytest-lazy-fixture,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "marshmallow-sqlalchemy";
16 version = "1.0.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 pname = "marshmallow_sqlalchemy";
23 inherit version;
24 hash = "sha256-IKDy/N1b3chkRPoBRh8X+bahKo3dTKjJs0/i8uNdAKI=";
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-fixture
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}