Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cloudevents / default.nix
blobd54b20975ca308e5247bd7cba3bcd4e1d44cfe45
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , wheel
6 , deprecation
7 , flask
8 , pydantic
9 , pytestCheckHook
10 , requests
11 , sanic
12 , sanic-testing
15 buildPythonPackage rec {
16   pname = "cloudevents";
17   version = "1.10.1";
18   pyproject = true;
20   src = fetchFromGitHub {
21     owner = "cloudevents";
22     repo = "sdk-python";
23     rev = "refs/tags/${version}";
24     hash = "sha256-YIvEAofWmnUblRd4jV3Zi3VdfocOnD05CMVm/abngyg=";
25   };
27   build-system = [
28     setuptools
29     wheel
30   ];
32   pythonImportsCheck = [ "cloudevents" ];
34   nativeCheckInputs = [
35     deprecation
36     flask
37     pydantic
38     pytestCheckHook
39     requests
40     sanic
41     sanic-testing
42   ];
44   disabledTestPaths = [
45     "samples/http-image-cloudevents/image_sample_test.py"
46   ];
48   meta = with lib; {
49     description = "Python SDK for CloudEvents";
50     homepage = "https://github.com/cloudevents/sdk-python";
51     changelog = "https://github.com/cloudevents/sdk-python/blob/${src.rev}/CHANGELOG.md";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ GaetanLepage ];
54   };