1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 17:01:10 +03:00
nixpkgs/pkgs/development/python-modules/mariadb/default.nix

31 lines
702 B
Nix
Raw Normal View History

2021-12-10 15:41:30 +08:00
{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }:
buildPythonPackage rec {
pname = "mariadb";
version = "1.0.10";
2021-12-10 15:41:30 +08:00
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-eQKLpgURc9rRrQvnUYOJyrcCOfkrT/i4gT2uVcPyxT0=";
2021-12-10 15:41:30 +08:00
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 ];
};
}