python312Packages.kneaddata: init at 0.7.7-alpha (#340230)
[NixPkgs.git] / pkgs / development / python-modules / flask-mysqldb / default.nix
blob995d44efcc5780df482a22758d673d7b4c162e09
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   flask,
8   mysqlclient,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "flask-mysqldb";
14   version = "2.0.0";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "alexferl";
21     repo = "flask-mysqldb";
22     rev = "v${version}";
23     hash = "sha256-RHAB9WGRzojH6eAOG61QguwF+4LssO9EcFjbWxoOtF4=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   propagatedBuildInputs = [
29     flask
30     mysqlclient
31   ];
33   pythonImportsCheck = [ "flask_mysqldb" ];
35   nativeCheckInputs = [ pytestCheckHook ];
37   meta = with lib; {
38     description = "MySQL connection support for Flask";
39     homepage = "https://github.com/alexferl/flask-mysqldb";
40     changelog = "https://github.com/alexferl/flask-mysqldb/releases/tag/v${version}";
41     license = licenses.mit;
42     maintainers = with maintainers; [ netali ];
43   };