depot/third_party/nixpkgs/pkgs/development/python-modules/microsoft-kiota-abstractions/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
opentelemetry-api,
opentelemetry-sdk,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
std-uritemplate,
}:
buildPythonPackage rec {
pname = "microsoft-kiota-abstractions";
version = "1.3.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "microsoft";
repo = "kiota-abstractions-python";
rev = "refs/tags/v${version}";
hash = "sha256-TgHj5Ga6Aw/sN2Hobn0OocFB/iGRHTKEeOa2j2aqnRY=";
};
build-system = [ flit-core ];
dependencies = [
opentelemetry-api
opentelemetry-sdk
std-uritemplate
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "kiota_abstractions" ];
meta = with lib; {
description = "Abstractions library for Kiota generated Python clients";
homepage = "https://github.com/microsoft/kiota-abstractions-python";
changelog = "https://github.com/microsoft/kiota-abstractions-python/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}