Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions pkgs/development/python-modules/flasgger/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,

# build-system
setuptools,

# dependencies
flask,
jsonschema,
mistune,
packaging,
pyyaml,
six,
werkzeug,
Expand All @@ -19,7 +22,7 @@
buildPythonPackage rec {
pname = "flasgger";
version = "0.9.7.1";
format = "setuptools";
pyproject = true;

src = fetchFromGitHub {
owner = "flasgger";
Expand All @@ -28,10 +31,13 @@ buildPythonPackage rec {
hash = "sha256-ULEf9DJiz/S2wKlb/vjGto8VCI0QDcm0pkU5rlOwtiE=";
};

propagatedBuildInputs = [
build-system = [ setuptools ];

dependencies = [
flask
jsonschema
mistune
packaging
pyyaml
six
werkzeug
Expand All @@ -41,7 +47,14 @@ buildPythonPackage rec {

nativeCheckInputs = [ pytestCheckHook ];

doCheck = false; # missing flex dependency
enabledTestPaths = [
"tests"
];

disabledTestPaths = [
# missing flex dependency
"tests/test_examples.py"
];

meta = with lib; {
description = "Easy OpenAPI specs and Swagger UI for your Flask API";
Expand Down
Loading