1{ buildPythonPackage
2, fetchFromGitHub
3, isPy27
4, lib
5, opuslib
6, protobuf
7, pytestCheckHook
8, pycrypto
9}:
10
11buildPythonPackage rec {
12 pname = "pymumble";
13 version = "1.6.1";
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "azlux";
18 repo = "pymumble";
19 rev = version;
20 sha256 = "1qbsd2zvwd9ksclgiyrl1z79ms0zximm4527mnmhvq36lykgki7s";
21 };
22
23 postPatch = ''
24 # Changes all `library==x.y.z` statements to just `library`
25 # So that we aren't constrained to a specific version
26 sed -i 's/\(.*\)==.*/\1/' requirements.txt
27 '';
28
29 propagatedBuildInputs = [
30 opuslib
31 protobuf
32 ];
33
34 checkInputs = [
35 pycrypto
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "pymumble_py3"
41 "pymumble_py3.constants"
42 ];
43
44 meta = with lib; {
45 description = "Python 3 version of pymumble, Mumble library used for multiple uses like making mumble bot.";
46 homepage = "https://github.com/azlux/pymumble";
47 license = licenses.gpl3Only;
48 maintainers = with maintainers; [ thelegy infinisil ];
49 };
50}