Merge pull request #150004 from VergeDX/mariadb

python3Packages.mariadb: init at 1.0.9
This commit is contained in:
Fabian Affolter 2021-12-23 09:28:44 +01:00 committed by GitHub
commit 14dd91f8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }:
buildPythonPackage rec {
pname = "mariadb";
version = "1.0.9";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-Aqmz0KB26aDQ6hxItF7Qm2R14rak6Mge2fHoLK87/Ck=";
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 ];
};
}

View File

@ -4739,6 +4739,8 @@ in {
mapbox = callPackage ../development/python-modules/mapbox { };
mariadb = callPackage ../development/python-modules/mariadb { };
marisa-trie = callPackage ../development/python-modules/marisa-trie { };
markdown2 = callPackage ../development/python-modules/markdown2 { };