Files
nixpkgs/pkgs/development/python-modules/jsonrpc-websocket/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.0 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
jsonrpc-base,
pytest-asyncio_0,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jsonrpc-websocket";
version = "3.1.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-websocket";
tag = version;
hash = "sha256-m2HiS03PZ6oiHJJ9Z2+5CfiHKIWJ1yzDqlZj22/JNAE=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
async-timeout
jsonrpc-base
];
nativeCheckInputs = [
pytest-asyncio_0
pytestCheckHook
];
pytestFlags = [
"--asyncio-mode=auto"
];
enabledTestPaths = [
"tests.py"
];
pythonImportsCheck = [ "jsonrpc_websocket" ];
meta = with lib; {
description = "JSON-RPC websocket client library for asyncio";
homepage = "https://github.com/emlove/jsonrpc-websocket";
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}