Merge pull request #121848 from fabaff/mutesync

This commit is contained in:
Martin Weinelt 2021-05-10 19:54:21 +02:00 committed by GitHub
commit f1b821a338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,42 @@
{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, fetchpatch
, fetchPypi
}:
buildPythonPackage rec {
pname = "mutesync";
version = "0.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "05r8maq59glwgysg98y1vrysfb1mkh9jpbag3ixl13n8jw8clp85";
};
propagatedBuildInputs = [
aiohttp
async-timeout
];
patches = [
# Don't parse requirements.txt, https://github.com/currentoor/pymutesync/pull/1
(fetchpatch {
name = "add-requirements.patch";
url = "https://github.com/currentoor/pymutesync/commit/d66910fc83b1ae3060cdb3fe22a6f91fb70a67f0.patch";
sha256 = "0axhgriyyv31b1r1yidxcrv0nyrqbb63xw5qrmv2iy2h0v96ijsk";
})
];
# Project has not published tests yet
doCheck = false;
pythonImportsCheck = [ "mutesync" ];
meta = with lib; {
description = "Python module for interacting with mutesync buttons";
homepage = "https://github.com/currentoor/pymutesync";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -531,7 +531,7 @@
"mqtt_statestream" = ps: with ps; [ aiohttp-cors paho-mqtt ]; "mqtt_statestream" = ps: with ps; [ aiohttp-cors paho-mqtt ];
"msteams" = ps: with ps; [ pymsteams ]; "msteams" = ps: with ps; [ pymsteams ];
"mullvad" = ps: with ps; [ mullvad-api ]; "mullvad" = ps: with ps; [ mullvad-api ];
"mutesync" = ps: with ps; [ ]; # missing inputs: mutesync "mutesync" = ps: with ps; [ mutesync ];
"mvglive" = ps: with ps; [ PyMVGLive ]; "mvglive" = ps: with ps; [ PyMVGLive ];
"my" = ps: with ps; [ aiohttp-cors pillow ]; "my" = ps: with ps; [ aiohttp-cors pillow ];
"mychevy" = ps: with ps; [ ]; # missing inputs: mychevy "mychevy" = ps: with ps; [ ]; # missing inputs: mychevy

View file

@ -316,6 +316,7 @@ in with py.pkgs; buildPythonApplication rec {
"mqtt_room" "mqtt_room"
"mqtt_statestream" "mqtt_statestream"
"mullvad" "mullvad"
"mutesync"
"nexia" "nexia"
"notify" "notify"
"notion" "notion"

View file

@ -4347,6 +4347,8 @@ in {
mutatormath = callPackage ../development/python-modules/mutatormath { }; mutatormath = callPackage ../development/python-modules/mutatormath { };
mutesync = callPackage ../development/python-modules/mutesync { };
mwclient = callPackage ../development/python-modules/mwclient { }; mwclient = callPackage ../development/python-modules/mwclient { };
mwdblib = callPackage ../development/python-modules/mwdblib { }; mwdblib = callPackage ../development/python-modules/mwdblib { };