81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
59 lines
1,003 B
Nix
59 lines
1,003 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, crcmod
|
|
, fetchFromGitHub
|
|
, getmac
|
|
, intelhex
|
|
, paho-mqtt
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-sugar
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymysensors";
|
|
version = "0.23.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "theolind";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0a09w1bzz2pn0w11f7kx8052914kdpgfb7w6hc9s50x8wl9q604h";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
crcmod
|
|
getmac
|
|
intelhex
|
|
paho-mqtt
|
|
pyserial
|
|
pyserial-asyncio
|
|
voluptuous
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-sugar
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mysensors"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for talking to a MySensors gateway";
|
|
homepage = "https://github.com/theolind/pymysensors";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|