Files
nixpkgs/pkgs/development/python-modules/bravado-core/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

74 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
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;
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
];
};
}