9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
46 lines
852 B
Nix
46 lines
852 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; [ costrouc ];
|
|
};
|
|
}
|