Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flask-marshmallow / default.nix
blob8f23f51fe9795ec1a0222ce3661ff8f07139ac74
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , flask
6 , marshmallow
7 , packaging
8 , pytestCheckHook
9 , flask-sqlalchemy
10 , marshmallow-sqlalchemy
13 buildPythonPackage rec {
14   pname = "flask-marshmallow";
15   version = "0.15.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "marshmallow-code";
22     repo = "flask-marshmallow";
23     rev = "refs/tags/${version}";
24     hash = "sha256-N21M/MzcvOaDh5BgbbZtNcpRAULtWGLTMberCfOUoEM=";
25   };
27   propagatedBuildInputs = [
28     flask
29     marshmallow
30     packaging
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ] ++ passthru.optional-dependencies.sqlalchemy;
37   pythonImportsCheck = [
38     "flask_marshmallow"
39   ];
41   passthru.optional-dependencies = {
42     sqlalchemy = [
43       flask-sqlalchemy
44       marshmallow-sqlalchemy
45     ];
46   };
48   meta = {
49     description = "Flask + marshmallow for beautiful APIs";
50     homepage = "https://github.com/marshmallow-code/flask-marshmallow";
51     changelog = "https://github.com/marshmallow-code/flask-marshmallow/releases/tag/${version}";
52     license = lib.licenses.mit;
53     maintainers = with lib.maintainers; [ nickcao ];
54   };