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