git.iko.soy/typeable/nixpkgs
on master help sign in
broadlink-cli: 0.9.0 -> 0.15.0 and use python3

Helps #101964

commit3eb034db8ce7bed0098c07d438d58cde7eb6de1b authorMatthew Kenigsberg <matthewkenigsberg@gmail.com> dateFri 30 Oct 2020, 09:33 (6 years ago) parent242441f
1 file changed+8−8
pkgs/tools/misc/broadlink-cli/default.nix+8−8
pkgs/tools/misc/broadlink-cli/default.nix+8−8
@@ -1,22 +1,22 @@
1−{ stdenv, python2Packages, fetchFromGitHub }:
1+{ stdenv, python3Packages, fetchFromGitHub }:
22
3−python2Packages.buildPythonApplication {
3+python3Packages.buildPythonApplication {
44 pname = "broadlink-cli";
5− inherit (python2Packages.broadlink) version;
5+ inherit (python3Packages.broadlink) version;
66
77 # the tools are available as part of the source distribution from GH but
88 # not pypi, so we have to fetch them here.
99 src = fetchFromGitHub {
1010 owner = "mjg59";
1111 repo = "python-broadlink";
12− # this rev is version 0.9
13− rev = "766b7b00fb1cec868e3d5fca66f1aada208959ce";
14− sha256 = "0j0idzxmpwkb1lbgvi9df2hbxafm5hxjc6mgg5481lq7z4z1r4nb";
12+ # this rev is version 0.15.0
13+ rev = "99add9e6feea6e47be4f3a58783556d7838b759c";
14+ sha256 = "1q1q62brvfjcb18i0j4ca5cxqzjwv1iywdrdby0yjqa4wm6ywq6b";
1515 };
1616
1717 format = "other";
1818
19− propagatedBuildInputs = with python2Packages; [
19+ propagatedBuildInputs = with python3Packages; [
2020 broadlink
2121 ];
2222
@@ -32,6 +32,6 @@ python2Packages.buildPythonApplication {
3232 meta = with stdenv.lib; {
3333 description = "Tools for interfacing with Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs";
3434 maintainers = with maintainers; [ peterhoeg ];
35− inherit (python2Packages.broadlink.meta) homepage license;
35+ inherit (python3Packages.broadlink.meta) homepage license;
3636 };
3737}