blob: 01f05fb1dfef4935c136e87205bb8b906abd20b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
buildPythonPackage,
fetchFromGitHub,
libmysqlclient,
packaging,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "mariadb";
version = "1.1.14";
pyproject = true;
src = fetchFromGitHub {
owner = "mariadb-corporation";
repo = "mariadb-connector-python";
tag = "v${version}";
hash = "sha256-BPyEBQ5M/kqTKpZX/incgTX/+E1dMZW98GuywsBeCJw=";
};
build-system = [ setuptools ];
nativeBuildInputs = [
libmysqlclient # for mariadb_config
];
buildInputs = [ libmysqlclient ];
dependencies = [
packaging # do not rely on pythonImportsCheck when removing, it pulls in build-system dependencies
];
# Requires a running MariaDB instance
doCheck = false;
pythonImportsCheck = [ "mariadb" ];
meta = {
description = "MariaDB Connector/Python";
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
license = lib.licenses.lgpl21Plus;
maintainers = [ ];
};
}
|