blob: 3b5b966475b1c896e76a093e1cf6746680a8764d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
deprecation,
flask,
pydantic,
pytestCheckHook,
requests,
sanic,
sanic-testing,
}:
buildPythonPackage rec {
pname = "cloudevents";
version = "1.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cloudevents";
repo = "sdk-python";
tag = version;
hash = "sha256-0WdCBwYz3XJWjUP0gf+IWdF4ZgPHFvUZFoQp9taqNz8=";
};
build-system = [
setuptools
];
dependencies = [
deprecation
];
pythonImportsCheck = [ "cloudevents" ];
nativeCheckInputs = [
flask
pydantic
pytestCheckHook
requests
sanic
sanic-testing
];
disabledTestPaths = [ "samples/http-image-cloudevents/image_sample_test.py" ];
__darwinAllowLocalNetworking = true;
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|