python39Packages.aiomysql: 0.0.21 -> 0.1.0
This commit is contained in:
parent
d123039b2e
commit
39cb2d6e3f
|
@ -2,55 +2,45 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pymysql
|
, pymysql
|
||||||
, pytest
|
, pythonOlder
|
||||||
, isPy27
|
, setuptools-scm
|
||||||
, fetchpatch
|
, setuptools-scm-git-archive
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiomysql";
|
pname = "aiomysql";
|
||||||
version = "0.0.21";
|
version = "0.1.0";
|
||||||
disabled = isPy27;
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aio-libs";
|
owner = "aio-libs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qvy3phbsxp55161dnppjfx2m1kn82v0irc3xzqw0adfd81vaiad";
|
hash = "sha256-TNaQ4EKiHwSmPpUco0pA5SBP3fljWQ/Kd5RLs649fu0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = [
|
||||||
(fetchpatch {
|
setuptools-scm
|
||||||
# vendor functions previously provided by pymysql.util
|
setuptools-scm-git-archive
|
||||||
url = "https://github.com/aio-libs/aiomysql/pull/554/commits/919b997a9de7f53d721af76762fba425e306531e.patch";
|
|
||||||
sha256 = "V1VYyqr6RwTXoVoGVyMuJst6uqTuuHbpMOpLoVZO1XA=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pymysql
|
pymysql
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# Tests require MySQL database
|
||||||
pytest
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "PyMySQL>=0.9,<=0.9.3" "PyMySQL"
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
# tests require mysql database
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"aiomysql"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "MySQL driver for asyncio";
|
description = "MySQL driver for asyncio";
|
||||||
homepage = "https://github.com/aio-libs/aiomysql";
|
homepage = "https://github.com/aio-libs/aiomysql";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue