depot/third_party/nixpkgs/pkgs/development/python-modules/flask-sqlalchemy/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flask
, mock
, pdm-pep517
, pytestCheckHook
, pythonOlder
, sqlalchemy
}:
buildPythonPackage rec {
pname = "flask-sqlalchemy";
version = "3.0.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "Flask-SQLAlchemy";
inherit version;
hash = "sha256-J2QzXzydfr3J7WBEr6+Yqun6UNegdM71Xd4wfslZA+w=";
};
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
flask
sqlalchemy
];
nativeCheckInputs = [
mock
pytestCheckHook
];
disabledTests = [
# flaky
"test_session_scoping_changing"
# https://github.com/pallets-eco/flask-sqlalchemy/issues/1084
"test_persist_selectable"
];
pythonImportsCheck = [
"flask_sqlalchemy"
];
meta = with lib; {
description = "SQLAlchemy extension for Flask";
homepage = "http://flask-sqlalchemy.pocoo.org/";
changelog = "https://github.com/pallets-eco/flask-sqlalchemy/blob/${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ gerschtli ];
};
}