nixpkgs/pkgs/development/python-modules/mariadb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
702 B
Nix
Raw Normal View History

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