2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
opuslib,
|
|
|
|
protobuf,
|
|
|
|
pytestCheckHook,
|
|
|
|
pycrypto,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymumble";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.6.1"; # Don't upgrade to 1.7, version was yanked
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "azlux";
|
|
|
|
repo = "pymumble";
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-+sT5pqdm4A2rrUcUUmvsH+iazg80+/go0zM1vr9oeuE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
opuslib
|
|
|
|
protobuf
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-28 09:39:13 +00:00
|
|
|
pycrypto
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pymumble_py3"
|
|
|
|
"pymumble_py3.constants"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
description = "Library to create mumble bots";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/azlux/pymumble";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/azlux/pymumble/releases/tag/${version}";
|
2021-03-20 04:20:00 +00:00
|
|
|
license = licenses.gpl3Only;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ thelegy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|