depot/third_party/nixpkgs/pkgs/development/python-modules/aiomysql/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

46 lines
842 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pymysql
, pythonOlder
, setuptools-scm
, setuptools-scm-git-archive
}:
buildPythonPackage rec {
pname = "aiomysql";
version = "0.1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
hash = "sha256-rYEos2RuE2xI59httYlN21smBH4/fU4uT48FWwrI6Qg=";
};
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; [ costrouc ];
};
}