28 buildPythonPackage rec {
33 disabled = pythonOlder "3.7";
35 src = fetchFromGitHub {
38 rev = "refs/tags/${version}";
39 hash = "sha256-Yd5ex0bcy61zq5Sn2dKeb98s/CMxUWnyGx6jFWQ3RUs=";
53 propagatedBuildInputs = [
59 ] ++ lib.optionals (pythonOlder "3.8") [
64 passthru.optional-dependencies = {
107 ] ++ passthru.optional-dependencies.all;
109 disabledTestPaths = [
110 "benchmarks/test_benchmark_*.py"
114 # TypeError: Object of type bytes is not JSON serializable
115 "test_bulk_operations_with_json"
117 # Tests require a database
118 "test_model_multiple_instances_of_same_table_in_schema"
119 "test_load_all_multiple_instances_of_same_table_in_schema"
120 "test_filter_groups_with_instances_of_same_table_in_schema"
121 "test_model_multiple_instances_of_same_table_in_schema"
122 "test_right_tables_join"
123 "test_multiple_reverse_related_objects"
124 "test_related_with_defaults"
125 "test_model_creation"
126 "test_default_orders_is_applied_on_related_two_fields"
127 "test_default_orders_is_applied_from_relation"
130 "test_queryset_methods"
131 "test_queryset_update"
132 "test_selecting_subset"
133 "test_selecting_subset_of_through_model"
134 "test_simple_queryset_values"
135 "test_queryset_values_nested_relation"
136 "test_queryset_simple_values_list"
137 "test_queryset_nested_relation_values_list"
138 "test_queryset_nested_relation_subset_of_fields_values_list"
141 "test_nested_flatten_and_exception"
142 "test_queryset_values_multiple_select_related"
143 "test_querysetproxy_values"
144 "test_querysetproxy_values_list"
145 "test_reverse_many_to_many_cascade"
146 "test_not_saved_raises_error"
147 "test_not_existing_raises_error"
148 "test_assigning_related_objects"
149 "test_quering_of_the_m2m_models"
150 "test_removal_of_the_relations"
151 "test_selecting_related"
152 "test_adding_unsaved_related"
153 "test_removing_unsaved_related"
154 "test_quering_of_related_model_works_but_no_result"
157 pythonImportsCheck = [
162 description = "Async ORM with fastapi in mind and pydantic validation";
163 homepage = "https://github.com/collerek/ormar";
164 changelog = "https://github.com/collerek/ormar/releases/tag/${version}";
165 license = licenses.mit;
166 maintainers = with maintainers; [ andreasfelix ];