Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchPypi, flit-core, marshmallow, mock, openapi-spec-validator, packaging, prance, pytestCheckHook, pythonOlder, pyyaml,}:
buildPythonPackage rec { pname = "apispec"; version = "6.8.2"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-zltpufzwJQy1a6DBpSp1/yLC98WGZU5XiEOZAYxRnyY="; };
build-system = [ flit-core ];
dependencies = [ packaging ];
optional-dependencies = { marshmallow = [ marshmallow ]; yaml = [ pyyaml ]; validation = [ openapi-spec-validator prance ] ++ prance.optional-dependencies.osv; };
nativeCheckInputs = [ mock pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "apispec" ];
meta = with lib; { changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst"; description = "Pluggable API specification generator with support for the OpenAPI Specification"; homepage = "https://github.com/marshmallow-code/apispec"; license = licenses.mit; maintainers = [ ]; };}