2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2024-01-25 14:12:00 +00:00
|
|
|
, flit-core
|
2023-08-22 20:05:09 +00:00
|
|
|
, flask
|
|
|
|
, marshmallow
|
|
|
|
, pytestCheckHook
|
|
|
|
, flask-sqlalchemy
|
|
|
|
, marshmallow-sqlalchemy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flask-marshmallow";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.2.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marshmallow-code";
|
|
|
|
repo = "flask-marshmallow";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-QoktZcyVJXkHr8fCVYt3ZkYq52nxCsZu+AgaDyrZHWs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
marshmallow
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
] ++ passthru.optional-dependencies.sqlalchemy;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_marshmallow"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
sqlalchemy = [
|
|
|
|
flask-sqlalchemy
|
|
|
|
marshmallow-sqlalchemy
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Flask + marshmallow for beautiful APIs";
|
|
|
|
homepage = "https://github.com/marshmallow-code/flask-marshmallow";
|
|
|
|
changelog = "https://github.com/marshmallow-code/flask-marshmallow/releases/tag/${version}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|