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