1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lzo, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9 wheel, 10}: 11 12buildPythonPackage rec { 13 pname = "python-lzo"; 14 version = "1.16"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "jd-boyd"; 21 repo = "python-lzo"; 22 tag = "v${version}"; 23 hash = "sha256-iXAvOCzHPvNERMkE5y4QTHi4ZieW1wrYWYScs7zyb2c="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 wheel 29 ]; 30 31 buildInputs = [ lzo ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "lzo" ]; 36 37 meta = with lib; { 38 description = "Python bindings for the LZO data compression library"; 39 homepage = "https://github.com/jd-boyd/python-lzo"; 40 changelog = "https://github.com/jd-boyd/python-lzo/releases/tag/v${version}"; 41 license = licenses.gpl2Only; 42 maintainers = with maintainers; [ jbedo ]; 43 }; 44}