diff options
Diffstat (limited to 'pkgs/development/python-modules/aiocomelit/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aiocomelit/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiocomelit/default.nix b/pkgs/development/python-modules/aiocomelit/default.nix new file mode 100644 index 000000000000..dd572da52210 --- /dev/null +++ b/pkgs/development/python-modules/aiocomelit/default.nix @@ -0,0 +1,52 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aiocomelit"; + version = "0.0.6"; + format = "pyproject"; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "chemelli74"; + repo = "aiocomelit"; + rev = "refs/tags/v${version}"; + hash = "sha256-u6CyqDFLgnIVak0UqN4JmL8ll/li3k9EhFs7iC5oZ9U="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=aiocomelit --cov-report=term-missing:skip-covered" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + nativeCheckInputs = [ + 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 ]; + }; +} |