1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "py-ubjson"; 9 version = "0.16.1"; 10 11 src = fetchFromGitHub { 12 owner = "Iotic-Labs"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3"; 16 }; 17 18 checkInputs = [ 19 pytestCheckHook 20 ]; 21 22 pytestFlagsArray = [ "test/test.py" ]; 23 24 pythonImportsCheck = [ "ubjson" ]; 25 26 meta = with lib; { 27 description = "Universal Binary JSON draft-12 serializer for Python"; 28 homepage = "https://github.com/Iotic-Labs/py-ubjson"; 29 license = with licenses; [ asl20 ]; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}