python311Packages.jsonrpc-websocket: refactor

This commit is contained in:
Fabian Affolter 2024-01-21 20:57:40 +01:00
parent b3660bfaf5
commit 41f6e78930

View file

@ -1,35 +1,42 @@
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, jsonrpc-base
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "jsonrpc-websocket";
version = "3.1.5";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-websocket";
rev = version;
rev = "refs/tags/${version}";
hash = "sha256-CdYa4gcbG3EM1glxLU1hyqbNse87KJKjwSRQSFfDMM0=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
async-timeout
jsonrpc-base
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [