@@ -1,20 +1,37 @@
1−{ lib, buildPythonPackage, fetchPypi
2−, aiohttp, jsonrpc-base }:
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, aiohttp
5+, jsonrpc-base
6+, pytest-aiohttp
7+, pytestCheckHook
8+}:
39
410buildPythonPackage rec {
511 pname = "jsonrpc-async";
6− version = "1.1.1";
12+ version = "2.0.0";
713
8− src = fetchPypi {
9− inherit pname version;
10− sha256 = "383f331e28cd8f6e3fa86f3e7052efa541b7ae8bf328a4e692aa045cfc0ecf25";
14+ src = fetchFromGitHub {
15+ owner = "emlove";
16+ repo = pname;
17+ rev = version;
18+ sha256 = "1ff3523rwgira5llmf5iriwqag7b6ln9vmj0s70yyc6k98yg06rp";
1119 };
1220
1321 propagatedBuildInputs = [ aiohttp jsonrpc-base ];
1422
23+ checkInputs = [
24+ pytest-aiohttp
25+ pytestCheckHook
26+ ];
27+
28+ pytestFlagsArray = [
29+ "tests.py"
30+ ];
31+
1532 meta = with lib; {
1633 description = "A JSON-RPC client library for asyncio";
17− homepage = "https://github.com/armills/jsonrpc-async";
34+ homepage = "https://github.com/emlove/jsonrpc-async";
1835 license = licenses.bsd3;
1936 maintainers = with maintainers; [ peterhoeg ];
2037 };