From 402f1a9d64fe215b37b297422f969923673cdfb5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 3 May 2024 13:00:01 +0200 Subject: [PATCH] python312Packages.aioazuredevops: 1.4.3 -> 2.0.0 https://github.com/timmo001/aioazuredevops/releases/tag/2.0.0 --- .../python-modules/aioazuredevops/default.nix | 55 ++++++++++++++----- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/aioazuredevops/default.nix b/pkgs/development/python-modules/aioazuredevops/default.nix index 377c96798629..aaab9a1a4cc5 100644 --- a/pkgs/development/python-modules/aioazuredevops/default.nix +++ b/pkgs/development/python-modules/aioazuredevops/default.nix @@ -1,30 +1,56 @@ { lib , buildPythonPackage -, isPy27 -, fetchPypi +, pythonOlder +, fetchFromGitHub + +# build-system +, setuptools + +# dependencies , aiohttp -, click +, incremental + +# tests +, aioresponses +, pytest-aiohttp +, pytest-asyncio +, pytest-socket +, pytestCheckHook +, syrupy }: buildPythonPackage rec { pname = "aioazuredevops"; - version = "1.4.3"; - format = "setuptools"; + version = "2.0.0"; + pyproject = true; - disabled = isPy27; + disabled = pythonOlder "3.11"; - src = fetchPypi { - inherit pname version; - hash = "sha256-vNTvSQYjjptdPsHz0zM9paq3iodZrhcEralPm6YRZJE="; + src = fetchFromGitHub { + owner = "timmo001"; + repo = "aioazuredevops"; + rev = "refs/tags/${version}"; + hash = "sha256-QEIVAcBoTvuOeLN2kfDa3uYfrUm5Qu1TLp9C0uU+mW4="; }; - propagatedBuildInputs = [ - aiohttp - click + build-system = [ + incremental + setuptools ]; - # no tests implemented - doCheck = false; + dependencies = [ + aiohttp + incremental + ]; + + nativeCheckInputs = [ + aioresponses + pytest-aiohttp + pytest-asyncio + pytest-socket + pytestCheckHook + syrupy + ]; pythonImportsCheck = [ "aioazuredevops.builds" @@ -33,6 +59,7 @@ buildPythonPackage rec { ]; meta = with lib; { + changelog = "https://github.com/timmo001/aioazuredevops/releases/tag/${version}"; description = "Get data from the Azure DevOps API"; mainProgram = "aioazuredevops"; homepage = "https://github.com/timmo001/aioazuredevops";