mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-13 16:34:27 +00:00
fd47630b8b
Without 'packages' dependency: $ nix-shell -I nixpkgs=./default.nix --pure -p python3Packages.connexion \ --command "python -m connexion --version" ... ModuleNotFoundError: No module named 'packaging' With 'packages' dependency added: $ nix-shell -I nixpkgs=./default.nix --pure -p python3Packages.connexion \ --command "python -m connexion --version" Connexion 2020.0.dev1 nix-info -m: - system: `"x86_64-darwin"` - host os: `Darwin 20.6.0, macOS 10.16` - multi-user?: `no` - sandbox: `yes` - version: `nix-env (Nix) 2.10.3` Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aiohttp-jinja2
|
|
, aiohttp-remotes
|
|
, aiohttp-swagger
|
|
, buildPythonPackage
|
|
, clickclick
|
|
, decorator
|
|
, fetchFromGitHub
|
|
, flask
|
|
, inflection
|
|
, jsonschema
|
|
, openapi-spec-validator
|
|
, packaging
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, swagger-ui-bundle
|
|
, testfixtures
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "connexion";
|
|
version = "2.14.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "spec-first";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8nWNFYW4DWAzIAsxgWPXOodlc2tuuGOktNo4N1G1oOc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiohttp-jinja2
|
|
aiohttp-swagger
|
|
clickclick
|
|
flask
|
|
inflection
|
|
jsonschema
|
|
openapi-spec-validator
|
|
packaging
|
|
pyyaml
|
|
requests
|
|
swagger-ui-bundle
|
|
];
|
|
|
|
checkInputs = [
|
|
aiohttp-remotes
|
|
decorator
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
testfixtures
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"connexion"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_headers"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Swagger/OpenAPI First framework on top of Flask";
|
|
homepage = "https://github.com/spec-first/connexion";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
};
|
|
}
|