summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-ubjson/default.nix
blob: 0a162ced99552cc3291a5b84ac268cf3df9aa5c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "py-ubjson";
  version = "0.16.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Iotic-Labs";
    repo = "py-ubjson";
    rev = "v${version}";
    sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3";
  };

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTests = [
    # https://github.com/Iotic-Labs/py-ubjson/issues/18
    "test_recursion"
  ];

  enabledTestPaths = [ "test/test.py" ];

  pythonImportsCheck = [ "ubjson" ];

  meta = {
    description = "Universal Binary JSON draft-12 serializer for Python";
    homepage = "https://github.com/Iotic-Labs/py-ubjson";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}