tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.mariadb: 1.1.4 -> 1.1.10
Robert Schütz
2 years ago
07d38933
58bc3da2
+20
-12
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
mariadb
default.nix
+20
-12
pkgs/development/python-modules/mariadb/default.nix
···
1
{
2
buildPythonPackage,
3
-
fetchPypi,
4
libmysqlclient,
5
lib,
6
pythonOlder,
0
7
}:
8
9
buildPythonPackage rec {
10
pname = "mariadb";
11
-
version = "1.1.4";
12
-
format = "setuptools";
13
14
-
disabled = pythonOlder "3.6";
15
16
-
src = fetchPypi {
17
-
inherit pname version;
18
-
hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY=";
19
-
extension = "zip";
0
20
};
21
22
-
nativeBuildInputs = [ libmysqlclient ];
0
0
0
0
0
0
23
24
# Requires a running MariaDB instance
25
doCheck = false;
26
27
pythonImportsCheck = [ "mariadb" ];
28
29
-
meta = with lib; {
30
description = "MariaDB Connector/Python";
31
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
32
-
license = licenses.lgpl21Only;
33
-
maintainers = with maintainers; [ vanilla ];
34
};
35
}
···
1
{
2
buildPythonPackage,
3
+
fetchFromGitHub,
4
libmysqlclient,
5
lib,
6
pythonOlder,
7
+
setuptools,
8
}:
9
10
buildPythonPackage rec {
11
pname = "mariadb";
12
+
version = "1.1.10";
13
+
pyproject = true;
14
15
+
disabled = pythonOlder "3.8";
16
17
+
src = fetchFromGitHub {
18
+
owner = "mariadb-corporation";
19
+
repo = "mariadb-connector-python";
20
+
rev = "refs/tags/v${version}";
21
+
hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE=";
22
};
23
24
+
build-system = [ setuptools ];
25
+
26
+
nativeBuildInputs = [
27
+
libmysqlclient # for mariadb_config
28
+
];
29
+
30
+
buildInputs = [ libmysqlclient ];
31
32
# Requires a running MariaDB instance
33
doCheck = false;
34
35
pythonImportsCheck = [ "mariadb" ];
36
37
+
meta = {
38
description = "MariaDB Connector/Python";
39
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
40
+
license = lib.licenses.lgpl21Plus;
41
+
maintainers = [ ];
42
};
43
}