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