Unverified Commit 1fed23c9 authored by Theodore Ni's avatar Theodore Ni
Browse files

python312Packages.pymumble: 1.6.1 -> unstable-2024-10-20

Move to using my fork of pymumble with a commit that regenerates proto
files using protoc 3.20 and relaxes version constraints.
parent 5d963722
Loading
Loading
Loading
Loading
+6 −13
Original line number Diff line number Diff line
@@ -9,26 +9,20 @@
  pythonOlder,
}:

buildPythonPackage rec {
buildPythonPackage {
  pname = "pymumble";
  version = "1.6.1"; # Don't upgrade to 1.7, version was yanked
  version = "unstable-2024-10-20";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "azlux";
    owner = "tjni";
    repo = "pymumble";
    rev = "refs/tags/${version}";
    hash = "sha256-+sT5pqdm4A2rrUcUUmvsH+iazg80+/go0zM1vr9oeuE=";
    rev = "3241e84e5ce162a20597e4df6a9c443122357fec";
    hash = "sha256-9lfWvfrS+vUFTf9jo4T+VHkm9u/hVjsDszLBQIEZVcQ=";
  };

  postPatch = ''
    # Changes all `library==x.y.z` statements to just `library`
    # So that we aren't constrained to a specific version
    sed -i 's/\(.*\)==.*/\1/' requirements.txt
  '';

  propagatedBuildInputs = [
    opuslib
    protobuf
@@ -46,8 +40,7 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Library to create mumble bots";
    homepage = "https://github.com/azlux/pymumble";
    changelog = "https://github.com/azlux/pymumble/releases/tag/${version}";
    homepage = "https://github.com/tjni/pymumble";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ thelegy ];
  };