Files
nixpkgs/pkgs/development/python-modules/pydal/default.nix
T
Weijia Wang a888068a01 Merge pull request #308753 from r-ryantm/auto-update/python311Packages.pydal
python311Packages.pydal: 20231114.3 -> 20240428.2
2024-06-02 01:21:00 +02:00

49 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pydal";
version = "20240428.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Iz4PXbNKqwud9TYBFGlZYMYtq/QG9rzKn80gVWi8we8=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
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"
];
pythonImportsCheck = [ "pydal" ];
meta = with lib; {
description = "Python Database Abstraction Layer";
homepage = "https://github.com/web2py/pydal";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ wamserma ];
};
}