Unverified Commit abe6ac9b authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

Merge pull request #334249 from mweinelt/leb128-pep517

python312Packages.leb128: fix build
parents ba99ba8e edd2b5e1
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  lib,
}:

buildPythonPackage rec {
  pname = "leb128";
  version = "1.0.7";
  format = "setuptools";
  version = "1.0.8";
  pyproject = true;

  # fetchPypi doesn't include files required for tests
  src = fetchFromGitHub {
    owner = "mohanson";
    repo = "leb128";
    rev = "refs/tags/v${version}";
    hash = "sha256-17C0Eic8T2PFkuIGExcrfb3b1HldaSBAPSh5TtRBUuU=";
    hash = "sha256-7ZjDqxGUANk3FfB3HPTc5CB5YcIi2ee0igXWAYXaZ88=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "leb128" ];

  meta = with lib; {
    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 = licenses.mit;