python3Packages.aiopg: init at 1.2.1

This commit is contained in:
Fabian Affolter 2021-05-08 20:50:24 +02:00
parent b3676834ca
commit e47dde2e2e
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, psycopg2
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiopg";
version = "1.2.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
sha256 = "0c6s2p1fjbdk1ygpl6a1s1rbnsk8gw9kj99pf98nxhb9j3iahas4";
};
propagatedBuildInputs = [
async-timeout
psycopg2
];
postPatch = ''
substituteInPlace setup.py \
--replace "psycopg2-binary" "psycopg2"
'';
# Tests requires a PostgreSQL Docker instance
doCheck = false;
pythonImportsCheck = [ "aiopg" ];
meta = with lib; {
description = "Python library for accessing a PostgreSQL database";
homepage = "https://aiopg.readthedocs.io/";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -311,6 +311,8 @@ in {
aionotion = callPackage ../development/python-modules/aionotion { };
aiopg = callPackage ../development/python-modules/aiopg { };
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
aiopulse = callPackage ../development/python-modules/aiopulse { };