depot/third_party/nixpkgs/pkgs/development/python-modules/pyduke-energy/default.nix
Default email 7bc014aa9c Project import generated by Copybara.
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
2022-09-11 12:47:08 -03:00

51 lines
921 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.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mjmeli";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-0fxFZQr8Oti17egBvpvE92YsIZ+Jf8gYRh0J2g5WTIc=";
};
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 ];
};
}