1{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, lib }:
2
3buildPythonPackage rec {
4 pname = "leb128";
5 version = "1.0.4";
6
7 # fetchPypi doesn't include files required for tests
8 src = fetchFromGitHub {
9 owner = "mohanson";
10 repo = "leb128";
11 rev = "v${version}";
12 sha256 = "040l6fxyzqal841kirf783kk1840gcy1gjd374jfr46v96qc8scm";
13 };
14
15 checkInputs = [ 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}