nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 flask,
7 mysqlclient,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "flask-mysqldb";
13 version = "2.0.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "alexferl";
18 repo = "flask-mysqldb";
19 rev = "v${version}";
20 hash = "sha256-RHAB9WGRzojH6eAOG61QguwF+4LssO9EcFjbWxoOtF4=";
21 };
22
23 nativeBuildInputs = [ setuptools ];
24
25 propagatedBuildInputs = [
26 flask
27 mysqlclient
28 ];
29
30 pythonImportsCheck = [ "flask_mysqldb" ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 meta = {
35 description = "MySQL connection support for Flask";
36 homepage = "https://github.com/alexferl/flask-mysqldb";
37 changelog = "https://github.com/alexferl/flask-mysqldb/releases/tag/v${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ netali ];
40 };
41}