python3Packages.jsonrpc-async: 1.1.1. -> 2.0.0

Fetch from GitHub to run tests, update homepage.

+24 -7
+24 -7
pkgs/development/python-modules/jsonrpc-async/default.nix
··· 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 + }: 3 9 4 10 buildPythonPackage rec { 5 11 pname = "jsonrpc-async"; 6 - version = "1.1.1"; 12 + version = "2.0.0"; 7 13 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"; 11 19 }; 12 20 13 21 propagatedBuildInputs = [ aiohttp jsonrpc-base ]; 14 22 23 + checkInputs = [ 24 + pytest-aiohttp 25 + pytestCheckHook 26 + ]; 27 + 28 + pytestFlagsArray = [ 29 + "tests.py" 30 + ]; 31 + 15 32 meta = with lib; { 16 33 description = "A JSON-RPC client library for asyncio"; 17 - homepage = "https://github.com/armills/jsonrpc-async"; 34 + homepage = "https://github.com/emlove/jsonrpc-async"; 18 35 license = licenses.bsd3; 19 36 maintainers = with maintainers; [ peterhoeg ]; 20 37 };