biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / flask-marshmallow / default.nix
blob6c256c49683511d3278c05ace3f86a4d01a96f13
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   flask,
6   flask-sqlalchemy,
7   flit-core,
8   marshmallow,
9   marshmallow-sqlalchemy,
10   pytestCheckHook,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "flask-marshmallow";
16   version = "1.2.1";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "marshmallow-code";
23     repo = "flask-marshmallow";
24     rev = "refs/tags/${version}";
25     hash = "sha256-GQLkt/CJf/QI8emvlW8xSRziGnncwfMSxBccW0Bb8I0=";
26   };
28   nativeBuildInputs = [ flit-core ];
30   propagatedBuildInputs = [
31     flask
32     marshmallow
33   ];
35   optional-dependencies = {
36     sqlalchemy = [
37       flask-sqlalchemy
38       marshmallow-sqlalchemy
39     ];
40   };
42   nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.sqlalchemy;
44   pythonImportsCheck = [ "flask_marshmallow" ];
46   pytestFlagsArray = [
47     "-W"
48     "ignore::DeprecationWarning"
49   ];
51   meta = {
52     description = "Flask + marshmallow for beautiful APIs";
53     homepage = "https://github.com/marshmallow-code/flask-marshmallow";
54     changelog = "https://github.com/marshmallow-code/flask-marshmallow/releases/tag/${version}";
55     license = lib.licenses.mit;
56     maintainers = with lib.maintainers; [ nickcao ];
57   };