25 buildPythonPackage rec {
30 disabled = pythonOlder "3.7";
32 src = fetchFromGitHub {
35 rev = "refs/tags/${version}";
36 hash = "sha256-B6dC9+t/pe7vsPb7rkGAbJWLfCAF7lIElFvt1pUu5yA=";
43 propagatedBuildInputs = [
53 ] ++ lib.optionals (pythonOlder "3.8") [
72 substituteInPlace pyproject.toml \
73 --replace 'SQLAlchemy = ">=1.3.18,<1.4.42"' 'SQLAlchemy = ">=1.3.18"' \
74 --replace 'databases = ">=0.3.2,!=0.5.0,!=0.5.1,!=0.5.2,!=0.5.3,<0.6.2"' 'databases = ">=0.5.5"'
78 # TypeError: Object of type bytes is not JSON serializable
79 "test_bulk_operations_with_json"
80 # Tests require a database
81 "test_model_multiple_instances_of_same_table_in_schema"
82 "test_load_all_multiple_instances_of_same_table_in_schema"
83 "test_filter_groups_with_instances_of_same_table_in_schema"
84 "test_model_multiple_instances_of_same_table_in_schema"
85 "test_right_tables_join"
86 "test_multiple_reverse_related_objects"
87 "test_related_with_defaults"
89 "test_default_orders_is_applied_on_related_two_fields"
90 "test_default_orders_is_applied_from_relation"
93 "test_queryset_methods"
94 "test_queryset_update"
95 "test_selecting_subset"
96 "test_selecting_subset_of_through_model"
97 "test_simple_queryset_values"
98 "test_queryset_values_nested_relation"
99 "test_queryset_simple_values_list"
100 "test_queryset_nested_relation_values_list"
101 "test_queryset_nested_relation_subset_of_fields_values_list"
104 "test_nested_flatten_and_exception"
105 "test_queryset_values_multiple_select_related"
106 "test_querysetproxy_values"
107 "test_querysetproxy_values_list"
108 "test_reverse_many_to_many_cascade"
109 "test_not_saved_raises_error"
110 "test_not_existing_raises_error"
111 "test_assigning_related_objects"
112 "test_quering_of_the_m2m_models"
113 "test_removal_of_the_relations"
114 "test_selecting_related"
115 "test_adding_unsaved_related"
116 "test_removing_unsaved_related"
117 "test_quering_of_related_model_works_but_no_result"
120 pythonImportsCheck = [
125 description = "Async ORM with fastapi in mind and pydantic validation";
126 homepage = "https://github.com/collerek/ormar";
127 license = licenses.mit;
128 maintainers = with maintainers; [ andreasfelix ];