1{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, lib }:
2
3buildPythonPackage rec {
4 pname = "leb128";
5 version = "1.0.5";
6
7 # fetchPypi doesn't include files required for tests
8 src = fetchFromGitHub {
9 owner = "mohanson";
10 repo = "leb128";
11 rev = "refs/tags/v${version}";
12 hash = "sha256-zK14LPziBkvXAMzuPbcg/47caO/5GEYA9txAzCGfpS8=";
13 };
14
15 nativeCheckInputs = [ pytestCheckHook ];
16 pythonImportsCheck = [ "leb128" ];
17
18 meta = with lib; {
19 description = "A utility to encode and decode Little Endian Base 128";
20 homepage = "https://github.com/mohanson/leb128";
21 license = licenses.mit;
22 maintainers = with maintainers; [ urlordjames ];
23 };
24}