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
1
{
2
2
buildPythonPackage,
3
3
-
fetchPypi,
3
3
+
fetchFromGitHub,
4
4
libmysqlclient,
5
5
lib,
6
6
pythonOlder,
7
7
+
setuptools,
7
8
}:
8
9
9
10
buildPythonPackage rec {
10
11
pname = "mariadb";
11
11
-
version = "1.1.4";
12
12
-
format = "setuptools";
12
12
+
version = "1.1.10";
13
13
+
pyproject = true;
13
14
14
14
-
disabled = pythonOlder "3.6";
15
15
+
disabled = pythonOlder "3.8";
15
16
16
16
-
src = fetchPypi {
17
17
-
inherit pname version;
18
18
-
hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY=";
19
19
-
extension = "zip";
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "mariadb-corporation";
19
19
+
repo = "mariadb-connector-python";
20
20
+
rev = "refs/tags/v${version}";
21
21
+
hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE=";
20
22
};
21
23
22
22
-
nativeBuildInputs = [ libmysqlclient ];
24
24
+
build-system = [ setuptools ];
25
25
+
26
26
+
nativeBuildInputs = [
27
27
+
libmysqlclient # for mariadb_config
28
28
+
];
29
29
+
30
30
+
buildInputs = [ libmysqlclient ];
23
31
24
32
# Requires a running MariaDB instance
25
33
doCheck = false;
26
34
27
35
pythonImportsCheck = [ "mariadb" ];
28
36
29
29
-
meta = with lib; {
37
37
+
meta = {
30
38
description = "MariaDB Connector/Python";
31
39
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
32
32
-
license = licenses.lgpl21Only;
33
33
-
maintainers = with maintainers; [ vanilla ];
40
40
+
license = lib.licenses.lgpl21Plus;
41
41
+
maintainers = [ ];
34
42
};
35
43
}