Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5}: 6 7buildPythonPackage rec { 8 pname = "pydal"; 9 version = "20221110.1"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-fD6JHHD42JGONidvIQoZWbt7rfOydvRxkZhv/PW2o5A="; 15 }; 16 17 postPatch = '' 18 # this test has issues with an import statement 19 # rm tests/tags.py 20 sed -i '/from .tags import/d' tests/__init__.py 21 22 # this assertion errors without obvious reason 23 sed -i '/self.assertEqual(csv0, str(r4))/d' tests/caching.py 24 25 # some sql tests fail against sqlite engine 26 sed -i '/from .sql import/d' tests/__init__.py 27 ''; 28 29 pythonImportsCheck = [ "pydal" ]; 30 31 checkPhase = '' 32 runHook preCheck 33 ${python.interpreter} -m unittest tests 34 runHook postCheck 35 ''; 36 37 meta = with lib; { 38 description = "Python Database Abstraction Layer"; 39 homepage = "https://github.com/web2py/pydal"; 40 license = with licenses; [ bsd3 ] ; 41 maintainers = with maintainers; [ wamserma ]; 42 }; 43}