diff --git a/pkgs/development/python-modules/bond-async/default.nix b/pkgs/development/python-modules/bond-async/default.nix index 2cffcd53fffa..800f8ac7b725 100644 --- a/pkgs/development/python-modules/bond-async/default.nix +++ b/pkgs/development/python-modules/bond-async/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, aiohttp, aioresponses, orjson, @@ -9,20 +10,24 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bond-async"; version = "0.2.1"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchFromGitHub { owner = "bondhome"; repo = "bond-async"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-YRJHUOYFLf4dtQGIFKHLdUQxWTnZzG1MPirMsGvDor8="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp orjson ]; @@ -38,8 +43,8 @@ buildPythonPackage rec { 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}"; + changelog = "https://github.com/bondhome/bond-async/releases/tag/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; }; -} +})