9 buildPythonPackage rec {
12 format = "setuptools";
14 disabled = pythonOlder "3.7";
16 src = fetchFromGitHub {
20 hash = "sha256-GD5lRSUjASTwBk5vEK8v3xD8eNyxpwSrO3HHvtwubmk=";
23 propagatedBuildInputs = [
29 substituteInPlace setup.py \
30 --replace "psycopg2-binary" "psycopg2"
33 # Tests requires a PostgreSQL Docker instance
36 pythonImportsCheck = [
41 description = "Python library for accessing a PostgreSQL database";
42 homepage = "https://aiopg.readthedocs.io/";
43 license = with licenses; [ bsd2 ];
44 maintainers = with maintainers; [ fab ];