Files
nixpkgs/pkgs/development/python-modules/aiomodernforms/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

67 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
aiohttp,
backoff,
yarl,
aresponses,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "aiomodernforms";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "wonderslug";
repo = "aiomodernforms";
rev = "v${version}";
hash = "sha256-Vx51WBjjNPIfLlwMnAuwHnGNljhnjKkU0tWB9M9rjsw=";
};
patches = [
# https://github.com/wonderslug/aiomodernforms/pull/274
(fetchpatch {
name = "replace-async-timeout-with-asyncio.timeout.patch";
url = "https://github.com/wonderslug/aiomodernforms/commit/61f1330b2fc244565fd97ae392b9778faa1bab09.patch";
hash = "sha256-7sy5/HgPYgVpULgeEu3tFBa2iXIskAqcarf0RndxTpE=";
})
];
build-system = [ setuptools ];
dependencies = [
aiohttp
backoff
yarl
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# https://github.com/wonderslug/aiomodernforms/issues/273
"test_connection_error"
"test_empty_response"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aiomodernforms" ];
meta = {
description = "Asynchronous Python client for Modern Forms fans";
homepage = "https://github.com/wonderslug/aiomodernforms";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}