depot/third_party/nixpkgs/pkgs/development/python-modules/flask-mysqldb/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

49 lines
930 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, flask
, mysqlclient
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flask-mysqldb";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alexferl";
repo = "flask-mysqldb";
rev = "v${version}";
hash = "sha256-RHAB9WGRzojH6eAOG61QguwF+4LssO9EcFjbWxoOtF4=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
flask
mysqlclient
];
pythonImportsCheck = [
"flask_mysqldb"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "MySQL connection support for Flask";
homepage = "https://github.com/alexferl/flask-mysqldb";
changelog = "https://github.com/alexferl/flask-mysqldb/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ netali ];
};
}