summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/audioop-lts/default.nix
blob: 726ceca435c0684437486ae74a27ff57f081af41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "audioop-lts";
  version = "0.2.2";
  pyproject = true;

  disabled = pythonOlder "3.13";

  src = fetchFromGitHub {
    owner = "AbstractUmbra";
    repo = "audioop";
    tag = version;
    hash = "sha256-C1z24kH5t0RSVqjT8SBdrilMtVs7pTI1vd+iwMk3RXE=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  preCheck = ''
    rm -rf audioop
  '';

  pythonImportsCheck = [
    "audioop"
  ];

  meta = {
    changelog = "https://github.com/AbstractUmbra/audioop/releases/tag/${version}";
    description = "LTS port of Python's `audioop` module";
    homepage = "https://github.com/AbstractUmbra/audioop";
    license = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ hexa ];
  };
}