depot/third_party/nixpkgs/pkgs/development/python-modules/leb128/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
714 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
lib,
}:
buildPythonPackage rec {
pname = "leb128";
version = "1.0.5";
format = "setuptools";
# fetchPypi doesn't include files required for tests
src = fetchFromGitHub {
owner = "mohanson";
repo = "leb128";
rev = "refs/tags/v${version}";
hash = "sha256-zK14LPziBkvXAMzuPbcg/47caO/5GEYA9txAzCGfpS8=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "leb128" ];
meta = with lib; {
description = "Utility to encode and decode Little Endian Base 128";
homepage = "https://github.com/mohanson/leb128";
license = licenses.mit;
maintainers = with maintainers; [ urlordjames ];
};
}