depot/third_party/nixpkgs/pkgs/development/python-modules/pydal/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pydal";
version = "20240601.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-t7Sl81YpdQZk4Q2ERz6jiJsD3ERmC8QVlr0d/RrNmhU=";
};
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 ];
};
}