2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydal";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "20240601.3";
|
2023-11-16 04:20:00 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-t7Sl81YpdQZk4Q2ERz6jiJsD3ERmC8QVlr0d/RrNmhU=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"tests/*.py"
|
|
|
|
# these tests already seem to be broken on the upstream
|
|
|
|
"--deselect=tests/nosql.py::TestFields::testRun"
|
|
|
|
"--deselect=tests/nosql.py::TestSelect::testGroupByAndDistinct"
|
|
|
|
"--deselect=tests/nosql.py::TestExpressions::testOps"
|
|
|
|
"--deselect=tests/nosql.py::TestExpressions::testRun"
|
|
|
|
"--deselect=tests/nosql.py::TestImportExportUuidFields::testRun"
|
|
|
|
"--deselect=tests/nosql.py::TestConnection::testRun"
|
|
|
|
"--deselect=tests/validation.py::TestValidateAndInsert::testRun"
|
|
|
|
"--deselect=tests/validation.py::TestValidateUpdateInsert::testRun"
|
|
|
|
"--deselect=tests/validators.py::TestValidators::test_IS_IN_DB"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pydal" ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Database Abstraction Layer";
|
2021-10-17 09:34:42 +00:00
|
|
|
homepage = "https://github.com/web2py/pydal";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2022-01-25 03:21:06 +00:00
|
|
|
maintainers = with maintainers; [ wamserma ];
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
}
|