mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
0215034f25
when they already rely on SRI hashes.
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, aiohttp
|
|
, click
|
|
, requests
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-mystrom";
|
|
version = "2.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Kqv5rUdwkynOzssID77gVYyzs0CDR/bUWh6zpt5zOP8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
click
|
|
requests
|
|
setuptools
|
|
];
|
|
|
|
# no tests are present
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pymystrom.bulb"
|
|
"pymystrom.pir"
|
|
"pymystrom.switch"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API client for interacting with myStrom devices";
|
|
longDescription = ''
|
|
Asynchronous Python API client for interacting with myStrom devices.
|
|
There is support for bulbs, motion sensors, plugs and buttons.
|
|
'';
|
|
homepage = "https://github.com/home-assistant-ecosystem/python-mystrom";
|
|
changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|