2021-07-24 12:14:16 +00:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, lib }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "leb128";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "1.0.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
# fetchPypi doesn't include files required for tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mohanson";
|
|
|
|
repo = "leb128";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zK14LPziBkvXAMzuPbcg/47caO/5GEYA9txAzCGfpS8=";
|
2021-07-24 12:14:16 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-24 12:14:16 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|