mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 20:11:43 +03:00
python310Packages.flask-admin: disable failing tests
- add optional-dependencies - disable on older Python releases
This commit is contained in:
parent
8ab2bf7bb8
commit
d2af28d94f
@ -1,21 +1,23 @@
|
||||
{ lib
|
||||
, arrow
|
||||
, azure-storage-blob
|
||||
, boto
|
||||
, buildPythonPackage
|
||||
, colour
|
||||
, email-validator
|
||||
, enum34
|
||||
, fetchPypi
|
||||
, flask
|
||||
, flask-sqlalchemy
|
||||
, flask-babelex
|
||||
, flask-mongoengine
|
||||
, flask-sqlalchemy
|
||||
, geoalchemy2
|
||||
, isPy27
|
||||
, mongoengine
|
||||
, pillow
|
||||
, psycopg2
|
||||
, pymongo
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, shapely
|
||||
, sqlalchemy
|
||||
, sqlalchemy-citext
|
||||
@ -29,26 +31,35 @@ buildPythonPackage rec {
|
||||
version = "1.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Flask-Admin";
|
||||
inherit version;
|
||||
sha256 = "1209qhm51d4z66mbw55cmkzqvr465shnws2m2l2zzpxhnxwzqks2";
|
||||
hash = "sha256-Qk/8ebew3/8FFVVobqEuhuSN/6ysFL6qMZ+0UCrECYg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
wtforms
|
||||
] ++ lib.optionals isPy27 [
|
||||
enum34
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
aws = [
|
||||
boto
|
||||
];
|
||||
azure = [
|
||||
azure-storage-blob
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
arrow
|
||||
colour
|
||||
email-validator
|
||||
flask-sqlalchemy
|
||||
flask-babelex
|
||||
flask-mongoengine
|
||||
flask-sqlalchemy
|
||||
geoalchemy2
|
||||
mongoengine
|
||||
pillow
|
||||
@ -65,6 +76,13 @@ buildPythonPackage rec {
|
||||
disabledTests = [
|
||||
# Incompatible with werkzeug 2.1
|
||||
"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 = [
|
||||
@ -84,7 +102,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
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/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ costrouc ];
|
||||
|
Loading…
Reference in New Issue
Block a user