159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
httpx,
|
|
microsoft-kiota-abstractions,
|
|
opentelemetry-api,
|
|
opentelemetry-sdk,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "microsoft-kiota-http";
|
|
version = "1.3.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "microsoft";
|
|
repo = "kiota-http-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-dtSTrsLVDNJ+s5B3wLvZ9qGerZ8fdYpEsqrBoPf7Lrk=";
|
|
};
|
|
|
|
build-system = [ flit-core ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
microsoft-kiota-abstractions
|
|
opentelemetry-api
|
|
opentelemetry-sdk
|
|
] ++ httpx.optional-dependencies.http2;
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
urllib3
|
|
];
|
|
|
|
pythonImportsCheck = [ "kiota_http" ];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP request adapter implementation for Kiota clients for Python";
|
|
homepage = "https://github.com/microsoft/kiota-http-python";
|
|
changelog = "https://github.com/microsoft/kiota-http-python/blob/${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|