Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / jsonrpc-base / default.nix
blob42aa42638013411615491d25b02bcfb7f1dd6838
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-asyncio
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "jsonrpc-base";
11   version = "2.1.1";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "emlove";
18     repo = pname;
19     rev = version;
20     hash = "sha256-C03m/zeLIFqsmEMSzt84LMOWAHUcpdEHhaa5hx2NsoQ=";
21   };
23   nativeCheckInputs = [
24     pytest-asyncio
25     pytestCheckHook
26   ];
28   pytestFlagsArray = [
29     "tests.py"
30   ];
32   pythonImportsCheck = [
33     "jsonrpc_base"
34   ];
36   meta = with lib; {
37     description = "A JSON-RPC client library base interface";
38     homepage = "https://github.com/emlove/jsonrpc-base";
39     license = licenses.bsd3;
40     maintainers = with maintainers; [ peterhoeg ];
41   };