1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 flask, 7 mock, 8 prettytable, 9 pyserial, 10 pytestCheckHook, 11 pythonOlder, 12 requests, 13 stevedore, 14}: 15 16buildPythonPackage { 17 pname = "pynx584"; 18 version = "0.8.2"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.6"; 22 23 src = fetchFromGitHub { 24 owner = "kk7ds"; 25 repo = "pynx584"; 26 tag = "0.8.2"; 27 hash = "sha256-q5ra7tH4kaBrw0VAiyMsmWOkVhA7Y6bRuFP8dlxQjsE="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 flask 34 prettytable 35 pyserial 36 requests 37 stevedore 38 ]; 39 40 nativeCheckInputs = [ 41 mock 42 pytestCheckHook 43 ]; 44 45 pythonImportsCheck = [ "nx584" ]; 46 47 meta = with lib; { 48 description = "Python package for communicating to NX584/NX8E interfaces"; 49 homepage = "https://github.com/kk7ds/pynx584"; 50 license = with licenses; [ gpl3Only ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}