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