mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
49 lines
952 B
Nix
49 lines
952 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, marshmallow
|
|
, mock
|
|
, openapi-spec-validator
|
|
, prance
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "apispec";
|
|
version = "6.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-522Atznt70viEwkqY4Stf9kzun1k9tWgr/jU2hvveIc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
prance
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
openapi-spec-validator
|
|
marshmallow
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"apispec"
|
|
];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst";
|
|
description = "A pluggable API specification generator with support for the OpenAPI Specification";
|
|
homepage = "https://github.com/marshmallow-code/apispec";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|