Skip to content

Commit

Permalink
python310Packages.ormar: 0.11.2 -> 0.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Sep 21, 2022
1 parent 2f8b8bc commit 57d7a93
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions pkgs/development/python-modules/ormar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

buildPythonPackage rec {
pname = "ormar";
version = "0.11.2";
version = "0.11.3";
format = "pyproject";

disabled = pythonOlder "3.7";
Expand All @@ -33,7 +33,7 @@ buildPythonPackage rec {
owner = "collerek";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-L0Tc/MmXDeNbUaHgWaxaY8lu+wUhq1ereqpya150SBg=";
hash = "sha256-4tGwhgHLZmvsbaDjmmQ3tXBwUBIxb5EpQrT8VIu/XwY=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -70,13 +70,51 @@ buildPythonPackage rec {

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'SQLAlchemy = ">=1.3.18,<1.4.39"' 'SQLAlchemy = ">=1.3.18"' \
--replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<0.6.1"' 'databases = ">=0.5.5"'
--replace 'SQLAlchemy = ">=1.3.18,<1.4.42"' 'SQLAlchemy = ">=1.3.18"' \
--replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<0.6.2"' 'databases = ">=0.5.5"'
'';

disabledTests = [
# TypeError: Object of type bytes is not JSON serializable
"test_bulk_operations_with_json"
# Tests require a database
"test_model_multiple_instances_of_same_table_in_schema"
"test_load_all_multiple_instances_of_same_table_in_schema"
"test_filter_groups_with_instances_of_same_table_in_schema"
"test_model_multiple_instances_of_same_table_in_schema"
"test_right_tables_join"
"test_multiple_reverse_related_objects"
"test_related_with_defaults"
"test_model_creation"
"test_default_orders_is_applied_on_related_two_fields"
"test_default_orders_is_applied_from_relation"
"test_sum_method"
"test_count_method "
"test_queryset_methods"
"test_queryset_update"
"test_selecting_subset"
"test_selecting_subset_of_through_model"
"test_simple_queryset_values"
"test_queryset_values_nested_relation"
"test_queryset_simple_values_list"
"test_queryset_nested_relation_values_list"
"test_queryset_nested_relation_subset_of_fields_values_list"
"test_m2m_values"
"test_nested_m2m"
"test_nested_flatten_and_exception"
"test_queryset_values_multiple_select_related"
"test_querysetproxy_values"
"test_querysetproxy_values_list"
"test_reverse_many_to_many_cascade"
"test_not_saved_raises_error"
"test_not_existing_raises_error"
"test_assigning_related_objects"
"test_quering_of_the_m2m_models"
"test_removal_of_the_relations"
"test_selecting_related"
"test_adding_unsaved_related"
"test_removing_unsaved_related"
"test_quering_of_related_model_works_but_no_result"
];

pythonImportsCheck = [
Expand Down

0 comments on commit 57d7a93

Please sign in to comment.