646c172193
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
51 lines
911 B
Nix
51 lines
911 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, jsonpickle
|
|
, paho-mqtt
|
|
, pytest-asyncio
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyduke-energy";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mjmeli";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bthEWsitnZwK4eyhLXv5RxlOaWyJG1fK0cC4wMEqCbI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
jsonpickle
|
|
paho-mqtt
|
|
python-dateutil
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyduke_energy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for the Duke Energy API";
|
|
homepage = "https://github.com/mjmeli/pyduke-energy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|