2021-04-09 23:24:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-19 17:25:36 +00:00
|
|
|
, pytest-asyncio
|
2021-04-09 23:24:28 +00:00
|
|
|
, pytestCheckHook
|
2022-04-30 09:47:55 +00:00
|
|
|
, pythonOlder
|
2021-04-09 23:24:28 +00:00
|
|
|
}:
|
2018-02-26 11:37:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonrpc-base";
|
2022-06-05 10:51:13 +00:00
|
|
|
version = "2.1.1";
|
2022-04-30 09:47:55 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2018-02-26 11:37:54 +00:00
|
|
|
|
2021-04-09 23:24:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emlove";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-05 10:51:13 +00:00
|
|
|
hash = "sha256-C03m/zeLIFqsmEMSzt84LMOWAHUcpdEHhaa5hx2NsoQ=";
|
2018-02-26 11:37:54 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-19 17:25:36 +00:00
|
|
|
pytest-asyncio
|
2021-04-09 23:24:28 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests.py"
|
|
|
|
];
|
2018-02-26 11:37:54 +00:00
|
|
|
|
2022-04-30 09:47:55 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jsonrpc_base"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-26 11:37:54 +00:00
|
|
|
description = "A JSON-RPC client library base interface";
|
2021-04-09 23:24:28 +00:00
|
|
|
homepage = "https://github.com/emlove/jsonrpc-base";
|
2018-02-26 11:37:54 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|