From 305b86e1fb154a9c1aa4f7a288a5ad5e5633ddf4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Apr 2022 11:47:55 +0200 Subject: [PATCH] python310Packages.jsonrpc-base: add pythonImportsCheck - add format - disable on older Python releases --- .../python-modules/jsonrpc-base/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jsonrpc-base/default.nix b/pkgs/development/python-modules/jsonrpc-base/default.nix index 62fbf0130cba..bdcdda0f41eb 100644 --- a/pkgs/development/python-modules/jsonrpc-base/default.nix +++ b/pkgs/development/python-modules/jsonrpc-base/default.nix @@ -3,17 +3,21 @@ , 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; - sha256 = "1cd83m831ngck2v8m08pb2g29z4vr9iggi73l7h506v6clkb4n3y"; + hash = "sha256-fliyJmVmG1DgoePE92LKm/wknlgXgYq2mOzZMFAdqLE="; }; checkInputs = [ @@ -25,6 +29,10 @@ buildPythonPackage rec { "tests.py" ]; + pythonImportsCheck = [ + "jsonrpc_base" + ]; + meta = with lib; { description = "A JSON-RPC client library base interface"; homepage = "https://github.com/emlove/jsonrpc-base";