python3Packages.pymumble: 0.3.1 -> 1.6

+30 -11
+30 -11
pkgs/development/python-modules/pymumble/default.nix
··· 1 - { buildPythonPackage, 2 - fetchFromGitHub, 3 - isPy27, 4 - lib, 5 - opuslib, 6 - protobuf, 1 + { buildPythonPackage 2 + , fetchFromGitHub 3 + , fetchpatch 4 + , isPy27 5 + , lib 6 + , opuslib 7 + , protobuf 8 + , pytestCheckHook 9 + , pycrypto 7 10 }: 8 11 9 12 buildPythonPackage rec { 10 13 pname = "pymumble"; 11 - version = "0.3.1"; 14 + version = "1.6"; 12 15 disabled = isPy27; 13 16 14 17 src = fetchFromGitHub { 15 18 owner = "azlux"; 16 19 repo = "pymumble"; 17 - rev = "1dd6d6d4df2fdef33202f17e2acf3ba9678a5737"; 18 - sha256 = "1r1sch8xrpbzffsb72lhp5xjr3ac3xb599n44vsfmaam3xklz6vz"; 20 + rev = version; 21 + sha256 = "04nc66d554a98mbmdgzgsg6ncaz0jsn4zdr3mr14w6wnhrxpjkrs"; 19 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 + ''; 20 37 21 38 propagatedBuildInputs = [ opuslib protobuf ]; 22 39 40 + checkInputs = [ pytestCheckHook pycrypto ]; 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 - license = licenses.gpl3; 29 - maintainers = with maintainers; [ thelegy ]; 47 + license = licenses.gpl3Only; 48 + maintainers = with maintainers; [ thelegy infinisil ]; 30 49 }; 31 50 }