depot/third_party/nixpkgs/pkgs/development/python-modules/aiomysql/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

46 lines
843 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pymysql
, pythonOlder
, setuptools-scm
, setuptools-scm-git-archive
}:
buildPythonPackage rec {
pname = "aiomysql";
version = "0.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-m/EgoBU3e+s3soXyYtACMDSjJfMLBOk/00qPtgawwQ8=";
};
nativeBuildInputs = [
setuptools-scm
setuptools-scm-git-archive
];
propagatedBuildInputs = [
pymysql
];
# Tests require MySQL database
doCheck = false;
pythonImportsCheck = [
"aiomysql"
];
meta = with lib; {
description = "MySQL driver for asyncio";
homepage = "https://github.com/aio-libs/aiomysql";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}