python3Packages.toonapi: replace async-timeout with asyncio.timeout
This commit is contained in:
@@ -4,16 +4,15 @@
|
||||
backoff,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
fetchpatch,
|
||||
yarl,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "toonapi";
|
||||
version = "0.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "frenck";
|
||||
@@ -22,7 +21,18 @@ buildPythonPackage rec {
|
||||
hash = "sha256-RaN9ppqJbTik1/vNX0/YLoBawrqjyQWU6+FLTspIxug=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
patches = [
|
||||
# https://github.com/frenck/python-toonapi/pull/15
|
||||
(fetchpatch {
|
||||
name = "replace-async-timeout-with-asyncio.timeout.patch";
|
||||
url = "https://github.com/frenck/python-toonapi/commit/a04f1d8bcbcf48889dae49219d2edadbeb2dfa01.patch";
|
||||
hash = "sha256-EMK11M+2OTnIB7oWavpQKNQq0ZLuSxYQlC6On7ob1xU=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
backoff
|
||||
yarl
|
||||
|
||||
Reference in New Issue
Block a user