Files
nixpkgs/pkgs/development/python-modules/aioweenect/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aioweenect";
version = "1.1.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "eifinger";
repo = "aioweenect";
tag = "v${version}";
hash = "sha256-2qTjRXQdTExqY5/ckB6UrkmavzjZK/agfL9+o6fXS0M=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--asyncio-mode=auto" ""
'';
pythonRelaxDeps = [ "aiohttp" ];
build-system = [ hatchling ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioweenect" ];
meta = {
description = "Library for the weenect API";
homepage = "https://github.com/eifinger/aioweenect";
changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}