python310Packages.jsonrpc-async: 2.0.0 -> 2.1.0
This commit is contained in:
parent
305b86e1fb
commit
31b631cbb5
|
@ -1,34 +1,55 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, aiohttp
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, aiohttp
|
, fetchpatch
|
||||||
, jsonrpc-base
|
, jsonrpc-base
|
||||||
, pytest-aiohttp
|
, pytest-aiohttp
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jsonrpc-async";
|
pname = "jsonrpc-async";
|
||||||
version = "2.0.0";
|
version = "2.1.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "emlove";
|
owner = "emlove";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1ff3523rwgira5llmf5iriwqag7b6ln9vmj0s70yyc6k98yg06rp";
|
hash = "sha256-Lr8gvQR0Q46b/e1K/XyvqtJo18nBpHjlDdNq4vjCMyU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ aiohttp jsonrpc-base ];
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
jsonrpc-base
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest-aiohttp
|
pytest-aiohttp
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix tests with later pytest-aiohttp, https://github.com/emlove/jsonrpc-async/pull/9
|
||||||
|
(fetchpatch {
|
||||||
|
name = "support-later-pytest-aiohttp.patch";
|
||||||
|
url = "https://github.com/emlove/jsonrpc-async/commit/8b790f23af0d898df90460029d5ba3bcfb0423ed.patch";
|
||||||
|
sha256 = "sha256-rthHRF90hywMIbvIHo3Do/uzXKe+STPOoZIa80H4b/g=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"tests.py"
|
"tests.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"jsonrpc_async"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A JSON-RPC client library for asyncio";
|
description = "A JSON-RPC client library for asyncio";
|
||||||
homepage = "https://github.com/emlove/jsonrpc-async";
|
homepage = "https://github.com/emlove/jsonrpc-async";
|
||||||
|
|
Loading…
Reference in a new issue