Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / apispec / default.nix
blobeccee0f3e18026695e974b158984cf1d0cb8ad7b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , flit-core
5 , marshmallow
6 , mock
7 , openapi-spec-validator
8 , packaging
9 , prance
10 , pytestCheckHook
11 , pythonOlder
12 , pyyaml
13 , setuptools
16 buildPythonPackage rec {
17   pname = "apispec";
18   version = "6.6.0";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-wIRvjqpRGcRrLs/pvCTtGduohF+GVdALUd3SlqEOpMs=";
26   };
28   nativeBuildInputs = [
29     flit-core
30   ];
32   propagatedBuildInputs = [
33     packaging
34   ];
36   passthru.optional-dependencies = {
37     marshmallow = [
38       marshmallow
39     ];
40     yaml = [
41       pyyaml
42     ];
43     validation = [
44       openapi-spec-validator
45       prance
46     ] ++ prance.optional-dependencies.osv;
47   };
49   nativeCheckInputs = [
50     mock
51     pytestCheckHook
52   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
54   pythonImportsCheck = [
55     "apispec"
56   ];
58   meta = with lib; {
59     changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst";
60     description = "A pluggable API specification generator with support for the OpenAPI Specification";
61     homepage = "https://github.com/marshmallow-code/apispec";
62     license = licenses.mit;
63     maintainers = with maintainers; [ ];
64   };