docker-library/python — pull request #27 by tianon (2014-12-02 08:04:27+00:00)
Title: Add slim deps of libsqlite3-0 at runtime and libsqlite3-dev at build time

Tested successfully using: (across both the non-slim and the slim variants of each of 2.7, 3.3, and 3.4)
```bash
docker run -it --rm image-being-tested bash -xec '
# ...
python -c "import sqlite3; print(sqlite3.sqlite_version); con = sqlite3.connect(\":memory:\", 1, sqlite3.PARSE_DECLTYPES, None); cur = con.cursor(); cur.execute(\"CREATE TABLE test (id INT, txt TEXT)\"); cur.execute(\"INSERT INTO test VALUES (?, ?)\", (42, \"wut\")); cur.execute(\"SELECT * FROM test\"); assert(cur.fetchall() == [(42, \"wut\")]); cur.execute(\"DROP TABLE test\"); con.close()"
# ...
'
```
```python
import sqlite3
print(sqlite3.sqlite_version)
con = sqlite3.connect(":memory:", 1, sqlite3.PARSE_DECLTYPES, None)
cur = con.cursor()
cur.execute("CREATE TABLE test (id INT, txt TEXT)")
cur.execute("INSERT INTO test VALUES (?, ?)", (42, "wut"))
cur.execute("SELECT * FROM test")
assert(cur.fetchall() == [(42, "wut")])
cur.execute("DROP TABLE test")
con.close()
```