depot/third_party/nixpkgs/pkgs/development/python-modules/aioazuredevops/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

69 lines
1.2 KiB
Nix

{
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 = "2.2.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "timmo001";
repo = "aioazuredevops";
rev = "refs/tags/${version}";
hash = "sha256-1v58I9WOyyrp9n+qdvVeMZ3EObqP/06XCOZYS0nEvPU=";
};
build-system = [
incremental
setuptools
];
dependencies = [
aiohttp
incremental
];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytest-asyncio
pytest-socket
pytestCheckHook
syrupy
];
pythonImportsCheck = [
"aioazuredevops.client"
"aioazuredevops.core"
];
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";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}