nixpkgs/pkgs/development/python-modules/jsonrpc-base/default.nix
Fabian Affolter 305b86e1fb python310Packages.jsonrpc-base: add pythonImportsCheck
- add format
- disable on older Python releases
2022-04-30 11:47:55 +02:00

43 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jsonrpc-base";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "emlove";
repo = pname;
rev = version;
hash = "sha256-fliyJmVmG1DgoePE92LKm/wknlgXgYq2mOzZMFAdqLE=";
};
checkInputs = [
pytest-asyncio
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
pythonImportsCheck = [
"jsonrpc_base"
];
meta = with lib; {
description = "A JSON-RPC client library base interface";
homepage = "https://github.com/emlove/jsonrpc-base";
license = licenses.bsd3;
maintainers = with maintainers; [ peterhoeg ];
};
}