python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / flask-sqlalchemy / default.nix
blob8fe842c2b6a00156b7f764294513bbede0db9dea
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   flask,
6   mock,
7   flit-core,
8   pytestCheckHook,
9   pythonAtLeast,
10   pythonOlder,
11   sqlalchemy,
14 buildPythonPackage rec {
15   pname = "flask-sqlalchemy";
16   version = "3.1.1";
17   format = "pyproject";
19   disabled = pythonOlder "3.9";
21   src = fetchPypi {
22     pname = "flask_sqlalchemy";
23     inherit version;
24     hash = "sha256-5LaLuIGALdoafYeLL8hMBtHuV/tAuHTT3Jfav6NrgxI=";
25   };
27   nativeBuildInputs = [ flit-core ];
29   propagatedBuildInputs = [
30     flask
31     sqlalchemy
32   ];
34   nativeCheckInputs = [
35     mock
36     pytestCheckHook
37   ];
39   doCheck = pythonOlder "3.13"; # https://github.com/pallets-eco/flask-sqlalchemy/issues/1379
41   disabledTests = [
42     # flaky
43     "test_session_scoping_changing"
44     # https://github.com/pallets-eco/flask-sqlalchemy/issues/1378
45     "test_explicit_table"
46   ];
48   pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [
49     # datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
50     "-W"
51     "ignore::DeprecationWarning"
52   ];
54   pythonImportsCheck = [ "flask_sqlalchemy" ];
56   meta = with lib; {
57     description = "SQLAlchemy extension for Flask";
58     homepage = "http://flask-sqlalchemy.pocoo.org/";
59     changelog = "https://github.com/pallets-eco/flask-sqlalchemy/blob/${version}/CHANGES.rst";
60     license = licenses.bsd3;
61     maintainers = with maintainers; [ gerschtli ];
62   };