python3Packages.pyswitchbot: init at 0.9.1

This commit is contained in:
Fabian Affolter 2021-02-27 10:20:07 +01:00
parent 870dbb751f
commit 9d9ecfffb9
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib
, bluepy
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "pyswitchbot";
version = "0.9.1";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "pySwitchbot";
rev = version;
sha256 = "16p11fmyms4q93m3rna76nkp2la9m8lmfmaflbvga666vljwfw6v";
};
propagatedBuildInputs = [ bluepy ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "switchbot" ];
meta = with lib; {
description = "Python library to control Switchbot IoT devices";
homepage = "https://github.com/Danielhiversen/pySwitchbot";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}

View File

@ -6091,6 +6091,8 @@ in {
inherit (pkgs) bash subversion apr aprutil expat neon openssl;
};
pyswitchbot = callPackage ../development/python-modules/pyswitchbot { };
pysychonaut = callPackage ../development/python-modules/pysychonaut { };
pysyncobj = callPackage ../development/python-modules/pysyncobj { };