nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 824 B view raw
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 setuptools, 5 pytestCheckHook, 6 lib, 7}: 8 9buildPythonPackage rec { 10 pname = "leb128"; 11 version = "1.0.9"; 12 pyproject = true; 13 14 # fetchPypi doesn't include files required for tests 15 src = fetchFromGitHub { 16 owner = "mohanson"; 17 repo = "leb128"; 18 tag = "v${version}"; 19 hash = "sha256-X3iBYiANzM97M91dCyjEU/Onhqcid3MMsNzzKtcRcyA="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "leb128" ]; 27 28 meta = { 29 changelog = "https://github.com/mohanson/leb128/releases/tag/${src.tag}"; 30 description = "Utility to encode and decode Little Endian Base 128"; 31 homepage = "https://github.com/mohanson/leb128"; 32 license = lib.licenses.mit; 33 maintainers = with lib.maintainers; [ urlordjames ]; 34 }; 35}