1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pyusb 6}: 7 8buildPythonPackage rec { 9 pname = "temperusb"; 10 version = "1.6.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-enYhqtJnORKhBoZkZPISLCt9Ec5SN6txD3z0SXuPrQo="; 18 }; 19 20 propagatedBuildInputs = [ 21 pyusb 22 ]; 23 24 # Module has no tests which are shipped and source is not tagged 25 doCheck = false; 26 27 pythonImportsCheck = [ 28 "temperusb" 29 ]; 30 31 meta = with lib; { 32 description = "Library to read TEMPer USB HID devices"; 33 homepage = "https://github.com/padelt/temper-python"; 34 license = licenses.gpl3Only; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}