nixpkgs/pkgs/development/python-modules/jsonrpc-base/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
776 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
2018-02-26 11:37:54 +00:00
buildPythonPackage rec {
pname = "jsonrpc-base";
version = "2.1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2018-02-26 11:37:54 +00:00
src = fetchFromGitHub {
owner = "emlove";
repo = pname;
rev = version;
hash = "sha256-C03m/zeLIFqsmEMSzt84LMOWAHUcpdEHhaa5hx2NsoQ=";
2018-02-26 11:37:54 +00:00
};
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
2018-02-26 11:37:54 +00:00
pythonImportsCheck = [
"jsonrpc_base"
];
meta = with lib; {
2018-02-26 11:37:54 +00:00
description = "A JSON-RPC client library base interface";
homepage = "https://github.com/emlove/jsonrpc-base";
2018-02-26 11:37:54 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}