diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyswitchbot/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyswitchbot/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyswitchbot/default.nix b/nixpkgs/pkgs/development/python-modules/pyswitchbot/default.nix new file mode 100644 index 000000000000..69bf01141824 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pyswitchbot/default.nix @@ -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; + }; +} |