python3Packages.jsonrpc-async: 1.1.1. -> 2.0.0

Fetch from GitHub to run tests, update homepage.
This commit is contained in:
Martin Weinelt 2021-04-10 01:23:27 +02:00
parent e9ad3e3e10
commit d23d0aa3bb

View File

@ -1,20 +1,37 @@
{ lib, buildPythonPackage, fetchPypi { lib
, aiohttp, jsonrpc-base }: , buildPythonPackage
, fetchFromGitHub
, aiohttp
, jsonrpc-base
, pytest-aiohttp
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "jsonrpc-async"; pname = "jsonrpc-async";
version = "1.1.1"; version = "2.0.0";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "emlove";
sha256 = "383f331e28cd8f6e3fa86f3e7052efa541b7ae8bf328a4e692aa045cfc0ecf25"; repo = pname;
rev = version;
sha256 = "1ff3523rwgira5llmf5iriwqag7b6ln9vmj0s70yyc6k98yg06rp";
}; };
propagatedBuildInputs = [ aiohttp jsonrpc-base ]; propagatedBuildInputs = [ aiohttp jsonrpc-base ];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
meta = with lib; { meta = with lib; {
description = "A JSON-RPC client library for asyncio"; description = "A JSON-RPC client library for asyncio";
homepage = "https://github.com/armills/jsonrpc-async"; homepage = "https://github.com/emlove/jsonrpc-async";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
}; };