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

49 lines
952 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
aioresponses,
orjson,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "bond-async";
version = "0.2.1";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchFromGitHub {
owner = "bondhome";
repo = "bond-async";
tag = "v${version}";
hash = "sha256-YRJHUOYFLf4dtQGIFKHLdUQxWTnZzG1MPirMsGvDor8=";
};
propagatedBuildInputs = [
aiohttp
orjson
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "bond_async" ];
meta = {
description = "Asynchronous Python wrapper library over Bond Local API";
homepage = "https://github.com/bondhome/bond-async";
changelog = "https://github.com/bondhome/bond-async/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}