889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
40 lines
788 B
Nix
40 lines
788 B
Nix
{ lib
|
|
, bleak
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyswitchbot";
|
|
version = "0.14.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "pySwitchbot";
|
|
rev = version;
|
|
hash = "sha256-6u7PqYv7Q5rVzsUnoQi495svX8puBz0Oj3SGgcpJrcQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
];
|
|
|
|
# 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;
|
|
};
|
|
}
|