at 24.11-pre 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pydal"; 12 version = "20231114.3"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-xC0W/Knju205mu+yQ0wOcIYu4Tx1Q3hS9CGSBDLuX7E="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pytestFlagsArray = [ 27 "tests/*.py" 28 # these tests already seem to be broken on the upstream 29 "--deselect=tests/nosql.py::TestFields::testRun" 30 "--deselect=tests/nosql.py::TestSelect::testGroupByAndDistinct" 31 "--deselect=tests/nosql.py::TestExpressions::testOps" 32 "--deselect=tests/nosql.py::TestExpressions::testRun" 33 "--deselect=tests/nosql.py::TestImportExportUuidFields::testRun" 34 "--deselect=tests/nosql.py::TestConnection::testRun" 35 "--deselect=tests/validation.py::TestValidateAndInsert::testRun" 36 "--deselect=tests/validation.py::TestValidateUpdateInsert::testRun" 37 "--deselect=tests/validators.py::TestValidators::test_IS_IN_DB" 38 ]; 39 40 pythonImportsCheck = [ "pydal" ]; 41 42 meta = with lib; { 43 description = "Python Database Abstraction Layer"; 44 homepage = "https://github.com/web2py/pydal"; 45 license = with licenses; [ bsd3 ]; 46 maintainers = with maintainers; [ wamserma ]; 47 }; 48}