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

56 lines
1.0 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
expects,
pytest-asyncio,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
setuptools,
yarl,
}:
buildPythonPackage rec {
pname = "aiosyncthing";
version = "0.6.3";
pyproject = true;
src = fetchFromGitHub {
owner = "zhulik";
repo = "aiosyncthing";
tag = "v${version}";
hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
yarl
];
nativeCheckInputs = [
aioresponses
expects
pytestCheckHook
pytest-cov-stub
pytest-asyncio
pytest-mock
];
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "aiosyncthing" ];
meta = {
description = "Python client for the Syncthing REST API";
homepage = "https://github.com/zhulik/aiosyncthing";
changelog = "https://github.com/zhulik/aiosyncthing/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}