1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 pytestCheckHook, 5 lib, 6}: 7 8buildPythonPackage rec { 9 pname = "leb128"; 10 version = "1.0.5"; 11 format = "setuptools"; 12 13 # fetchPypi doesn't include files required for tests 14 src = fetchFromGitHub { 15 owner = "mohanson"; 16 repo = "leb128"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-zK14LPziBkvXAMzuPbcg/47caO/5GEYA9txAzCGfpS8="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 pythonImportsCheck = [ "leb128" ]; 23 24 meta = with lib; { 25 description = "A utility to encode and decode Little Endian Base 128"; 26 homepage = "https://github.com/mohanson/leb128"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ urlordjames ]; 29 }; 30}