1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-03 14:22:35 +03:00
nixpkgs/pkgs/development/python-modules/jsonrpc-websocket/default.nix

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

51 lines
922 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
, jsonrpc-base
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
2018-02-26 19:38:32 +08:00
buildPythonPackage rec {
pname = "jsonrpc-websocket";
version = "3.1.4";
format = "setuptools";
2018-02-26 19:38:32 +08:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emlove";
repo = "jsonrpc-websocket";
rev = version;
sha256 = "sha256-xSOITOVtsNMEDrq610l8LNipLdyMWzKOQDedQEGaNOQ=";
2018-02-26 19:38:32 +08:00
};
propagatedBuildInputs = [
aiohttp
jsonrpc-base
];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
2018-02-26 19:38:32 +08:00
pytestFlagsArray = [
"--asyncio-mode=auto"
"tests.py"
];
pythonImportsCheck = [
"jsonrpc_websocket"
];
meta = with lib; {
2018-02-26 19:38:32 +08:00
description = "A JSON-RPC websocket client library for asyncio";
homepage = "https://github.com/emlove/jsonrpc-websocket";
2018-02-26 19:38:32 +08:00
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}