depot/third_party/nixpkgs/pkgs/development/python-modules/py-ubjson/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

42 lines
823 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "py-ubjson";
version = "0.16.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "Iotic-Labs";
repo = pname;
rev = "v${version}";
sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3";
};
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# https://github.com/Iotic-Labs/py-ubjson/issues/18
"test_recursion"
];
pytestFlagsArray = [
"test/test.py"
];
pythonImportsCheck = [
"ubjson"
];
meta = with lib; {
description = "Universal Binary JSON draft-12 serializer for Python";
homepage = "https://github.com/Iotic-Labs/py-ubjson";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}