Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 910 B view raw
1{ stdenv, lib, fetchPypi, buildPythonPackage, isPy3k, isPy35 2, mock 3, pysqlite 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "SQLAlchemy"; 9 version = "1.3.13"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "64a7b71846db6423807e96820993fa12a03b89127d278290ca25c0b11ed7b4fb"; 14 }; 15 16 checkInputs = [ 17 pytestCheckHook 18 mock 19 ] ++ lib.optional (!isPy3k) pysqlite; 20 21 postInstall = '' 22 sed -e 's:--max-worker-restart=5::g' -i setup.cfg 23 ''; 24 25 dontUseSetuptoolsCheck = true; 26 27 # disable mem-usage tests on mac, has trouble serializing pickle files 28 disabledTests = lib.optionals isPy35 [ "exception_persistent_flush_py3k "] 29 ++ lib.optionals stdenv.isDarwin [ "MemUsageWBackendTest" "MemUsageTest" ]; 30 31 meta = with lib; { 32 homepage = http://www.sqlalchemy.org/; 33 description = "A Python SQL toolkit and Object Relational Mapper"; 34 license = licenses.mit; 35 }; 36}