python310Packages.flask-admin: disable failing tests

- add optional-dependencies
- disable on older Python releases
main
Fabian Affolter 2 years ago
parent 8ab2bf7bb8
commit d2af28d94f
  1. 32
      pkgs/development/python-modules/flask-admin/default.nix

@ -1,21 +1,23 @@
{ lib { lib
, arrow , arrow
, azure-storage-blob
, boto
, buildPythonPackage , buildPythonPackage
, colour , colour
, email-validator , email-validator
, enum34 , enum34
, fetchPypi , fetchPypi
, flask , flask
, flask-sqlalchemy
, flask-babelex , flask-babelex
, flask-mongoengine , flask-mongoengine
, flask-sqlalchemy
, geoalchemy2 , geoalchemy2
, isPy27
, mongoengine , mongoengine
, pillow , pillow
, psycopg2 , psycopg2
, pymongo , pymongo
, pytestCheckHook , pytestCheckHook
, pythonOlder
, shapely , shapely
, sqlalchemy , sqlalchemy
, sqlalchemy-citext , sqlalchemy-citext
@ -29,26 +31,35 @@ buildPythonPackage rec {
version = "1.6.0"; version = "1.6.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
pname = "Flask-Admin"; pname = "Flask-Admin";
inherit version; inherit version;
sha256 = "1209qhm51d4z66mbw55cmkzqvr465shnws2m2l2zzpxhnxwzqks2"; hash = "sha256-Qk/8ebew3/8FFVVobqEuhuSN/6ysFL6qMZ+0UCrECYg=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
flask flask
wtforms wtforms
] ++ lib.optionals isPy27 [
enum34
]; ];
passthru.optional-dependencies = {
aws = [
boto
];
azure = [
azure-storage-blob
];
};
checkInputs = [ checkInputs = [
arrow arrow
colour colour
email-validator email-validator
flask-sqlalchemy
flask-babelex flask-babelex
flask-mongoengine flask-mongoengine
flask-sqlalchemy
geoalchemy2 geoalchemy2
mongoengine mongoengine
pillow pillow
@ -65,6 +76,13 @@ buildPythonPackage rec {
disabledTests = [ disabledTests = [
# Incompatible with werkzeug 2.1 # Incompatible with werkzeug 2.1
"test_mockview" "test_mockview"
# Tests are outdated and don't work with peewee
"test_nested_flask_views"
"test_export_csv"
"test_list_row_actions"
"test_column_editable_list"
"test_column_filters"
"test_export_csv"
]; ];
disabledTestPaths = [ disabledTestPaths = [
@ -84,7 +102,7 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
description = "Simple and extensible admin interface framework for Flask"; description = "Admin interface framework for Flask";
homepage = "https://github.com/flask-admin/flask-admin/"; homepage = "https://github.com/flask-admin/flask-admin/";
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ]; maintainers = with maintainers; [ costrouc ];

Loading…
Cancel
Save