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