567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
825 B
Nix
36 lines
825 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
lib,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "leb128";
|
|
version = "1.0.8";
|
|
pyproject = true;
|
|
|
|
# fetchPypi doesn't include files required for tests
|
|
src = fetchFromGitHub {
|
|
owner = "mohanson";
|
|
repo = "leb128";
|
|
tag = "v${version}";
|
|
hash = "sha256-7ZjDqxGUANk3FfB3HPTc5CB5YcIi2ee0igXWAYXaZ88=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "leb128" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/mohanson/leb128/releases/tag/v${version}";
|
|
description = "Utility to encode and decode Little Endian Base 128";
|
|
homepage = "https://github.com/mohanson/leb128";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ urlordjames ];
|
|
};
|
|
}
|