diff options
Diffstat (limited to 'pkgs/development/python-modules/aioazuredevops/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aioazuredevops/default.nix | 60 |
1 files changed, 44 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/aioazuredevops/default.nix b/pkgs/development/python-modules/aioazuredevops/default.nix index 377c967986296..d8b046d3b03b2 100644 --- a/pkgs/development/python-modules/aioazuredevops/default.nix +++ b/pkgs/development/python-modules/aioazuredevops/default.nix @@ -1,30 +1,57 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, aiohttp -, click +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + aiohttp, + 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 = [ + build-system = [ + incremental + setuptools + ]; + + dependencies = [ aiohttp - click + incremental ]; - # no tests implemented - doCheck = false; + nativeCheckInputs = [ + aioresponses + pytest-aiohttp + pytest-asyncio + pytest-socket + pytestCheckHook + syrupy + ]; pythonImportsCheck = [ "aioazuredevops.builds" @@ -33,6 +60,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"; |