Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flask-mysqldb / default.nix
blobf0b7d59206febc66ecb4dc298ac7ae64608a6dfd
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , setuptools
6 , flask
7 , mysqlclient
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "flask-mysqldb";
13   version = "2.0.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "alexferl";
20     repo = "flask-mysqldb";
21     rev = "v${version}";
22     hash = "sha256-RHAB9WGRzojH6eAOG61QguwF+4LssO9EcFjbWxoOtF4=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   propagatedBuildInputs = [
30     flask
31     mysqlclient
32   ];
34   pythonImportsCheck = [
35     "flask_mysqldb"
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   meta = with lib; {
43     description = "MySQL connection support for Flask";
44     homepage = "https://github.com/alexferl/flask-mysqldb";
45     changelog = "https://github.com/alexferl/flask-mysqldb/releases/tag/v${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ netali ];
48   };