tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.pymumble: 0.3.1 -> 1.6
Silvan Mosberger
4 years ago
8c77085b
f702e566
+30
-11
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pymumble
default.nix
+30
-11
pkgs/development/python-modules/pymumble/default.nix
···
1
1
-
{ buildPythonPackage,
2
2
-
fetchFromGitHub,
3
3
-
isPy27,
4
4
-
lib,
5
5
-
opuslib,
6
6
-
protobuf,
1
1
+
{ buildPythonPackage
2
2
+
, fetchFromGitHub
3
3
+
, fetchpatch
4
4
+
, isPy27
5
5
+
, lib
6
6
+
, opuslib
7
7
+
, protobuf
8
8
+
, pytestCheckHook
9
9
+
, pycrypto
7
10
}:
8
11
9
12
buildPythonPackage rec {
10
13
pname = "pymumble";
11
11
-
version = "0.3.1";
14
14
+
version = "1.6";
12
15
disabled = isPy27;
13
16
14
17
src = fetchFromGitHub {
15
18
owner = "azlux";
16
19
repo = "pymumble";
17
17
-
rev = "1dd6d6d4df2fdef33202f17e2acf3ba9678a5737";
18
18
-
sha256 = "1r1sch8xrpbzffsb72lhp5xjr3ac3xb599n44vsfmaam3xklz6vz";
20
20
+
rev = version;
21
21
+
sha256 = "04nc66d554a98mbmdgzgsg6ncaz0jsn4zdr3mr14w6wnhrxpjkrs";
19
22
};
23
23
+
patches = [
24
24
+
# Compatibility with pycryptodome (which is what our pycrypto really is)
25
25
+
# See https://github.com/azlux/pymumble/pull/99
26
26
+
(fetchpatch {
27
27
+
url = "https://github.com/azlux/pymumble/pull/99/commits/b85548a0e1deaac820954b1c0b308af214311a14.patch";
28
28
+
sha256 = "0w9dpc87rny6vmhi634pih1p97b67jm26qajscpa9wp6nphdlxlj";
29
29
+
})
30
30
+
];
31
31
+
32
32
+
postPatch = ''
33
33
+
# Changes all `library==x.y.z` statements to just `library`
34
34
+
# So that we aren't constrained to a specific version
35
35
+
sed -i 's/\(.*\)==.*/\1/' requirements.txt
36
36
+
'';
20
37
21
38
propagatedBuildInputs = [ opuslib protobuf ];
22
39
40
40
+
checkInputs = [ pytestCheckHook pycrypto ];
41
41
+
23
42
pythonImportsCheck = [ "pymumble_py3" ];
24
43
25
44
meta = with lib; {
26
45
description = "Python 3 version of pymumble, Mumble library used for multiple uses like making mumble bot.";
27
46
homepage = "https://github.com/azlux/pymumble";
28
28
-
license = licenses.gpl3;
29
29
-
maintainers = with maintainers; [ thelegy ];
47
47
+
license = licenses.gpl3Only;
48
48
+
maintainers = with maintainers; [ thelegy infinisil ];
30
49
};
31
50
}