nixpkgs-suyu/pkgs/development/python-modules/aioswitcher/default.nix
2021-06-04 00:01:41 +02:00

49 lines
898 B
Nix

{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytest-sugar
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aioswitcher";
version = "1.2.5";
format = "pyproject";
src = fetchFromGitHub {
owner = "TomerFi";
repo = pname;
rev = version;
sha256 = "sha256-eiWmB2DVNAYHPHfnVwv0+4A/wYLgtAa1ReGsmwiIvAk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
asynctest
pytest-aiohttp
pytest-asyncio
pytest-sugar
pytestCheckHook
];
pythonImportsCheck = [ "aioswitcher" ];
meta = with lib; {
description = "Python module to interact with Switcher water heater";
homepage = "https://github.com/TomerFi/aioswitcher";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}