Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
32 lines
726 B
Nix
32 lines
726 B
Nix
{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mariadb";
|
|
version = "1.1.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY=";
|
|
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 ];
|
|
};
|
|
}
|