Something went wrong. Try again.
lol
Something went wrong. Try again.
843 B · 42 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, async-timeout, buildPythonPackage, fetchFromGitHub, psycopg2,}:
buildPythonPackage rec { pname = "aiopg"; version = "1.4.0"; format = "setuptools";
src = fetchFromGitHub { owner = "aio-libs"; repo = "aiopg"; rev = "v${version}"; hash = "sha256-GD5lRSUjASTwBk5vEK8v3xD8eNyxpwSrO3HHvtwubmk="; };
propagatedBuildInputs = [ async-timeout psycopg2 ];
postPatch = '' substituteInPlace setup.py \ --replace "psycopg2-binary" "psycopg2" '';
# Tests requires a PostgreSQL Docker instance doCheck = false;
pythonImportsCheck = [ "aiopg" ];
meta = { description = "Python library for accessing a PostgreSQL database"; homepage = "https://aiopg.readthedocs.io/"; license = with lib.licenses; [ bsd2 ]; maintainers = with lib.maintainers; [ fab ]; };}