52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
azure-core,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
setuptools,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "azure-eventhub";
|
|
version = "5.15.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-sdk-for-python";
|
|
tag = "azure-eventhub_${version}";
|
|
hash = "sha256-zpj1DUeFCXgVw44LcBCYtuFcQtA9BnrDKAxKSYzu4ts=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/sdk/eventhub/azure-eventhub";
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
azure-core
|
|
typing-extensions
|
|
];
|
|
|
|
# too complicated to set up
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"azure.eventhub"
|
|
"azure.eventhub.aio"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater { rev-prefix = "azure.eventhub."; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Microsoft Azure Event Hubs Client Library for Python";
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub";
|
|
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/${src.tag}/sdk/eventhub/azure-eventhub/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|