nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 jsonrpc-base,
7 pytest-aiohttp,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "jsonrpc-async";
14 version = "2.1.3";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "emlove";
19 repo = "jsonrpc-async";
20 tag = version;
21 hash = "sha256-WcO2mj5QYZTMnFTNo1ABgpJPxM+GREVIf+z9viFDJHM=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 jsonrpc-base
29 ];
30
31 nativeCheckInputs = [
32 pytest-aiohttp
33 pytestCheckHook
34 ];
35
36 enabledTestPaths = [ "tests.py" ];
37
38 pythonImportsCheck = [ "jsonrpc_async" ];
39
40 meta = {
41 description = "JSON-RPC client library for asyncio";
42 homepage = "https://github.com/emlove/jsonrpc-async";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ peterhoeg ];
45 };
46}