depot/third_party/nixpkgs/pkgs/development/python-modules/mariadb/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

43 lines
878 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
libmysqlclient,
lib,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "mariadb";
version = "1.1.10";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mariadb-corporation";
repo = "mariadb-connector-python";
rev = "refs/tags/v${version}";
hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE=";
};
build-system = [ setuptools ];
nativeBuildInputs = [
libmysqlclient # for mariadb_config
];
buildInputs = [ libmysqlclient ];
# 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 = [ ];
};
}