587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
{ lib
|
|
, awesomeversion
|
|
, buildPythonPackage
|
|
, click
|
|
, crcmod
|
|
, fetchFromGitHub
|
|
, getmac
|
|
, intelhex
|
|
, paho-mqtt
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytest-sugar
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, voluptuous
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymysensors";
|
|
version = "0.24.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "theolind";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-3t9YrSJf02kc5CuTqPBc/qNJV7yy7Vke4WqhtuOaAYo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
awesomeversion
|
|
click
|
|
crcmod
|
|
getmac
|
|
intelhex
|
|
pyserial
|
|
pyserial-asyncio
|
|
voluptuous
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
mqtt-client = [
|
|
paho-mqtt
|
|
];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest-sugar
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mysensors"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for talking to a MySensors gateway";
|
|
mainProgram = "pymysensors";
|
|
homepage = "https://github.com/theolind/pymysensors";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|