depot/third_party/nixpkgs/pkgs/development/python-modules/mysqlclient/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

35 lines
647 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, libmysqlclient
, pkg-config
}:
buildPythonPackage rec {
pname = "mysqlclient";
version = "2.2.1";
format = "setuptools";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libmysqlclient
];
# Tests need a MySQL database
doCheck = false;
src = fetchPypi {
inherit pname version;
hash = "sha256-LHrRW4cpOxL9RLR8RoeeyV7GR/RWfoZszXC4M3WE6bI=";
};
meta = with lib; {
description = "Python interface to MySQL";
homepage = "https://github.com/PyMySQL/mysqlclient-python";
license = licenses.gpl2Only;
maintainers = with maintainers; [ y0no ];
};
}