8e65f7f0cc
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
40 lines
790 B
Nix
40 lines
790 B
Nix
{ lib
|
|
, bluepy
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyswitchbot";
|
|
version = "0.13.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "pySwitchbot";
|
|
rev = version;
|
|
hash = "sha256-Zgpnw4It3yyy9RQqt5SxeJXl1Z3J3Rp9baLfiw5Bgow=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|