From b6f118ba5b1a286b12ad1d82c9ac66fe6362ba93 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jan 2025 12:08:43 +0100 Subject: [PATCH 1/2] python312Packages.aiosyncthing: migrate to pytest-cov-stub --- pkgs/development/python-modules/aiosyncthing/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiosyncthing/default.nix b/pkgs/development/python-modules/aiosyncthing/default.nix index 59bc50e78e37..7bb23bce17ec 100644 --- a/pkgs/development/python-modules/aiosyncthing/default.nix +++ b/pkgs/development/python-modules/aiosyncthing/default.nix @@ -6,6 +6,7 @@ fetchFromGitHub, expects, pytest-asyncio, + pytest-cov-stub, pytest-mock, pytestCheckHook, yarl, @@ -32,17 +33,13 @@ buildPythonPackage rec { aioresponses expects pytestCheckHook + pytest-cov-stub pytest-asyncio pytest-mock ]; pytestFlagsArray = [ "--asyncio-mode=auto" ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=aiosyncthing --cov-report=html" "" - ''; - pythonImportsCheck = [ "aiosyncthing" ]; meta = with lib; { From f3fe1478712c25d6729a21f9187112bad0575916 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jan 2025 12:12:43 +0100 Subject: [PATCH 2/2] python312Packages.aiosyncthing: refactor - add changelog to meta - migrate build-system --- .../python-modules/aiosyncthing/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/aiosyncthing/default.nix b/pkgs/development/python-modules/aiosyncthing/default.nix index 7bb23bce17ec..08e1599f4597 100644 --- a/pkgs/development/python-modules/aiosyncthing/default.nix +++ b/pkgs/development/python-modules/aiosyncthing/default.nix @@ -9,22 +9,25 @@ pytest-cov-stub, pytest-mock, pytestCheckHook, + setuptools, yarl, }: buildPythonPackage rec { pname = "aiosyncthing"; version = "0.6.3"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "zhulik"; - repo = pname; - rev = "v${version}"; + repo = "aiosyncthing"; + tag = "v${version}"; hash = "sha256-vn8S2/kRW5C2Hbes9oLM4LGm1jWWK0zeLdujR14y6EI="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp yarl ]; @@ -45,7 +48,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python client for the Syncthing REST API"; homepage = "https://github.com/zhulik/aiosyncthing"; - license = with licenses; [ mit ]; + changelog = "https://github.com/zhulik/aiosyncthing/releases/tag/v${version}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }