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