1{ lib 2, crownstone-core 3, buildPythonPackage 4, pyserial 5, fetchFromGitHub 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "crownstone-uart"; 11 version = "2.7.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "crownstone"; 18 repo = "crownstone-lib-python-uart"; 19 rev = version; 20 hash = "sha256-Sc6BCIRbf1+GraTScmV4EAgwtSE/JXNe0f2XhKyACIY="; 21 }; 22 23 propagatedBuildInputs = [ 24 crownstone-core 25 pyserial 26 ]; 27 28 # Project has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "crownstone_uart" 33 ]; 34 35 meta = with lib; { 36 description = "Python module for communicating with Crownstone USB dongles"; 37 homepage = "https://github.com/crownstone/crownstone-lib-python-uart"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}