summary refs log tree commit diff
path: root/pkgs/development/python-modules/mariadb/default.nix
blob: 987fe203edb79cc6b2101b0dfa102fb2c0bc96d2 (plain) (blame)
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
{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }:

buildPythonPackage rec {
  pname = "mariadb";
  version = "1.0.10";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-eQKLpgURc9rRrQvnUYOJyrcCOfkrT/i4gT2uVcPyxT0=";
    extension = "zip";
  };

  nativeBuildInputs = [
    libmysqlclient
  ];

  # Requires a running MariaDB instance
  doCheck = false;

  pythonImportsCheck = [ "mariadb" ];

  meta = with lib; {
    description = "MariaDB Connector/Python";
    homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
    license = licenses.lgpl21Only;
    maintainers = with maintainers; [ vanilla ];
  };
}