depot/third_party/nixpkgs/pkgs/development/python-modules/aiocomelit/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 lines
1.1 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
colorlog,
fetchFromGitHub,
pint,
poetry-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiocomelit";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "chemelli74";
repo = "aiocomelit";
rev = "refs/tags/v${version}";
hash = "sha256-Fjf7mXXUnBTtPfNHHJdFx5ho4eg0N3iHCGsACa4IMjY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=aiocomelit --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
pint
];
nativeCheckInputs = [
colorlog
pytestCheckHook
];
pythonImportsCheck = [ "aiocomelit" ];
meta = with lib; {
description = "Library to control Comelit Simplehome";
homepage = "https://github.com/chemelli74/aiocomelit";
changelog = "https://github.com/chemelli74/aiocomelit/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}