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