2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
|
|
|
deprecation,
|
|
|
|
flask,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
requests,
|
|
|
|
sanic,
|
|
|
|
sanic-testing,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudevents";
|
|
|
|
version = "1.10.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudevents";
|
|
|
|
repo = "sdk-python";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-YIvEAofWmnUblRd4jV3Zi3VdfocOnD05CMVm/abngyg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cloudevents" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
deprecation
|
|
|
|
flask
|
|
|
|
pydantic
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
sanic
|
|
|
|
sanic-testing
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "samples/http-image-cloudevents/image_sample_test.py" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SDK for CloudEvents";
|
|
|
|
homepage = "https://github.com/cloudevents/sdk-python";
|
|
|
|
changelog = "https://github.com/cloudevents/sdk-python/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|