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
-
{ buildPythonPackage,
2
-
fetchFromGitHub,
3
-
isPy27,
4
-
lib,
5
-
opuslib,
6
-
protobuf,
0
0
0
7
}:
8
9
buildPythonPackage rec {
10
pname = "pymumble";
11
-
version = "0.3.1";
12
disabled = isPy27;
13
14
src = fetchFromGitHub {
15
owner = "azlux";
16
repo = "pymumble";
17
-
rev = "1dd6d6d4df2fdef33202f17e2acf3ba9678a5737";
18
-
sha256 = "1r1sch8xrpbzffsb72lhp5xjr3ac3xb599n44vsfmaam3xklz6vz";
19
};
0
0
0
0
0
0
0
0
0
0
0
0
0
0
20
21
propagatedBuildInputs = [ opuslib protobuf ];
22
0
0
23
pythonImportsCheck = [ "pymumble_py3" ];
24
25
meta = with lib; {
26
description = "Python 3 version of pymumble, Mumble library used for multiple uses like making mumble bot.";
27
homepage = "https://github.com/azlux/pymumble";
28
-
license = licenses.gpl3;
29
-
maintainers = with maintainers; [ thelegy ];
30
};
31
}
···
1
+
{ buildPythonPackage
2
+
, fetchFromGitHub
3
+
, fetchpatch
4
+
, isPy27
5
+
, lib
6
+
, opuslib
7
+
, protobuf
8
+
, pytestCheckHook
9
+
, pycrypto
10
}:
11
12
buildPythonPackage rec {
13
pname = "pymumble";
14
+
version = "1.6";
15
disabled = isPy27;
16
17
src = fetchFromGitHub {
18
owner = "azlux";
19
repo = "pymumble";
20
+
rev = version;
21
+
sha256 = "04nc66d554a98mbmdgzgsg6ncaz0jsn4zdr3mr14w6wnhrxpjkrs";
22
};
23
+
patches = [
24
+
# Compatibility with pycryptodome (which is what our pycrypto really is)
25
+
# See https://github.com/azlux/pymumble/pull/99
26
+
(fetchpatch {
27
+
url = "https://github.com/azlux/pymumble/pull/99/commits/b85548a0e1deaac820954b1c0b308af214311a14.patch";
28
+
sha256 = "0w9dpc87rny6vmhi634pih1p97b67jm26qajscpa9wp6nphdlxlj";
29
+
})
30
+
];
31
+
32
+
postPatch = ''
33
+
# Changes all `library==x.y.z` statements to just `library`
34
+
# So that we aren't constrained to a specific version
35
+
sed -i 's/\(.*\)==.*/\1/' requirements.txt
36
+
'';
37
38
propagatedBuildInputs = [ opuslib protobuf ];
39
40
+
checkInputs = [ pytestCheckHook pycrypto ];
41
+
42
pythonImportsCheck = [ "pymumble_py3" ];
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
}