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