Files
nixpkgs/pkgs/development/python-modules/bravado-core/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

77 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
# build inputs
jsonref,
jsonschema,
python-dateutil,
pyyaml,
requests,
simplejson,
six,
swagger-spec-validator,
pytz,
msgpack,
# check inputs
pytestCheckHook,
mock,
}:
buildPythonPackage rec {
pname = "bravado-core";
version = "6.6.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Yelp";
repo = "bravado-core";
rev = "v${version}";
hash = "sha256-kyHmZNPl5lLKmm5i3TSi8Tfi96mQHqaiyBfceBJcOdw=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
jsonref
jsonschema # jsonschema[format-nongpl]
python-dateutil
pyyaml
requests
simplejson
six
swagger-spec-validator
pytz
msgpack
]
++ jsonschema.optional-dependencies.format-nongpl;
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [ mock ];
pythonImportsCheck = [ "bravado_core" ];
disabledTestPaths = [
# skip benchmarks
"tests/profiling"
# take too long to run
"tests/spec/Spec"
];
meta = {
description = "Library for adding Swagger support to clients and servers";
homepage = "https://github.com/Yelp/bravado-core";
changelog = "https://github.com/Yelp/bravado-core/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
vanschelven
nickcao
];
};
}