1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "audioop-lts"; 12 version = "0.2.2"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.13"; 16 17 src = fetchFromGitHub { 18 owner = "AbstractUmbra"; 19 repo = "audioop"; 20 tag = version; 21 hash = "sha256-C1z24kH5t0RSVqjT8SBdrilMtVs7pTI1vd+iwMk3RXE="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 preCheck = '' 29 rm -rf audioop 30 ''; 31 32 pythonImportsCheck = [ 33 "audioop" 34 ]; 35 36 meta = { 37 changelog = "https://github.com/AbstractUmbra/audioop/releases/tag/${version}"; 38 description = "LTS port of Python's `audioop` module"; 39 homepage = "https://github.com/AbstractUmbra/audioop"; 40 license = lib.licenses.psfl; 41 maintainers = with lib.maintainers; [ hexa ]; 42 }; 43}