1{ lib 2, buildPythonPackage 3, click 4, fetchFromGitHub 5, justbackoff 6, pythonOlder 7, pytest-asyncio 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "nessclient"; 13 version = "1.0.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "nickw444"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-UqHXKfS4zF1YhFbNKSVESmsxD0CYJKOmjMOE3blGdI8="; 23 }; 24 25 propagatedBuildInputs = [ 26 justbackoff 27 click 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "nessclient" 37 ]; 38 39 meta = with lib; { 40 description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol"; 41 homepage = "https://github.com/nickw444/nessclient"; 42 changelog = "https://github.com/nickw444/nessclient/releases/tag/${version}"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}