at 23.11-beta 942 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "tlv8"; 9 version = "0.10.0"; 10 format = "setuptools"; 11 12 # pypi does not contain test files 13 src = fetchFromGitHub { 14 owner = "jlusiardi"; 15 repo = "tlv8_python"; 16 rev = "v${version}"; 17 sha256 = "sha256-G35xMFYasKD3LnGi9q8wBmmFvqgtg0HPdC+y82nxRWA="; 18 }; 19 20 checkInputs = [ 21 pytestCheckHook 22 ]; 23 24 pythonImportsCheck = [ 25 "tlv8" 26 ]; 27 28 meta = with lib; { 29 description = "Type-Length-Value8 (TLV8) for Python"; 30 longDescription = '' 31 Python module to handle type-length-value (TLV) encoded data 8-bit type, 8-bit length, and N-byte 32 value as described within the Apple HomeKit Accessory Protocol Specification Non-Commercial Version 33 Release R2. 34 ''; 35 homepage = "https://github.com/jlusiardi/tlv8_python"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ jojosch ]; 38 }; 39}