1e73531950
Fixes CVE-2025-62611 / GHSA-r397-ff8c-wv2g. https://github.com/aio-libs/aiomysql/releases/tag/v0.3.2
46 lines
800 B
Nix
46 lines
800 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pymysql,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiomysql";
|
|
version = "0.3.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aio-libs";
|
|
repo = "aiomysql";
|
|
tag = "v${version}";
|
|
hash = "sha256-DBNLmroR1W/gsYtW0iGNpki6EYUq6MyHI2pCRdyapU4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|