3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #151323 from fabaff/pyduke-energy

python3Packages.pyduke-energy: init at 1.0.0
This commit is contained in:
Fabian Affolter 2021-12-20 08:08:29 +01:00 committed by GitHub
commit fbd4cc0a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ 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 ];
};
}

View file

@ -6530,6 +6530,8 @@ in {
pydub = callPackage ../development/python-modules/pydub { };
pyduke-energy = callPackage ../development/python-modules/pyduke-energy { };
pydy = callPackage ../development/python-modules/pydy { };
pydyf = callPackage ../development/python-modules/pydyf { };