1{ lib 2, fetchPypi 3, buildPythonPackage 4, pytest 5, mock 6, isPy3k 7, pysqlite 8}: 9 10buildPythonPackage rec { 11 pname = "SQLAlchemy"; 12 version = "1.2.11"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "ef6569ad403520ee13e180e1bfd6ed71a0254192a934ec1dbd3dbf48f4aa9524"; 17 }; 18 19 checkInputs = [ 20 pytest 21 mock 22# Disable pytest_xdist tests for now, because our version seems to be too new. 23# pytest_xdist 24 ] ++ lib.optional (!isPy3k) pysqlite; 25 26 checkPhase = '' 27 py.test -k "not test_round_trip_direct_type_affinity" 28 ''; 29 30 meta = with lib; { 31 homepage = http://www.sqlalchemy.org/; 32 description = "A Python SQL toolkit and Object Relational Mapper"; 33 license = licenses.mit; 34 }; 35}