depot/third_party/nixpkgs/pkgs/development/python-modules/leb128/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
707 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 = "A utility to encode and decode Little Endian Base 128";
homepage = "https://github.com/mohanson/leb128";
license = licenses.mit;
maintainers = with maintainers; [ urlordjames ];
};
}