Merge pull request #113778 from fabaff/pymitv

This commit is contained in:
Sandro 2021-02-21 05:06:51 +01:00 committed by GitHub
commit a0e658b8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pymitv";
version = "1.4.3";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0jbs1zhqpnsyad3pd8cqy1byv8m5bq17ydc6crmrfkjbp6xvvg3x";
};
propagatedBuildInputs = [ requests ];
# Projec thas no tests
doCheck = false;
pythonImportsCheck = [ "pymitv" ];
meta = with lib; {
description = "Python client the Mi Tv 3";
homepage = "https://github.com/simse/pymitv";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -950,7 +950,7 @@
"xiaomi" = ps: with ps; [ ha-ffmpeg ];
"xiaomi_aqara" = ps: with ps; [ pyxiaomigateway aiohttp-cors netdisco zeroconf ];
"xiaomi_miio" = ps: with ps; [ construct python-miio ];
"xiaomi_tv" = ps: with ps; [ ]; # missing inputs: pymitv
"xiaomi_tv" = ps: with ps; [ pymitv ];
"xmpp" = ps: with ps; [ slixmpp ];
"xs1" = ps: with ps; [ ]; # missing inputs: xs1-api-client
"yale_smart_alarm" = ps: with ps; [ yalesmartalarmclient ];

View File

@ -5696,6 +5696,8 @@ in {
pymetno = callPackage ../development/python-modules/pymetno { };
pymitv = callPackage ../development/python-modules/pymitv { };
pymodbus = callPackage ../development/python-modules/pymodbus { };
pymongo = callPackage ../development/python-modules/pymongo { };