1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-23 01:41:05 +03:00
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
842 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
2018-02-26 19:37:54 +08:00
buildPythonPackage rec {
pname = "jsonrpc-base";
version = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
2018-02-26 19:37:54 +08:00
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-base";
rev = "refs/tags/${version}";
hash = "sha256-AbpuAW+wuGc+Vj4FDFlyB2YbiwDxPLuyAGiNcmGU+Ss=";
2018-02-26 19:37:54 +08:00
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [ "tests.py" ];
2018-02-26 19:37:54 +08:00
pythonImportsCheck = [ "jsonrpc_base" ];
meta = with lib; {
2018-02-26 19:37:54 +08:00
description = "JSON-RPC client library base interface";
homepage = "https://github.com/emlove/jsonrpc-base";
2018-02-26 19:37:54 +08:00
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}