at 24.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, importlib-metadata 5, passlib 6, python-dateutil 7, pythonOlder 8, scramp 9, setuptools 10, versioningit 11}: 12 13buildPythonPackage rec { 14 pname = "pg8000"; 15 version = "1.30.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-wEKA5mocz7UWbbXBZBZMLhuPYq+u3/0hFFGlMproSik="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 versioningit 28 ]; 29 30 propagatedBuildInputs = [ 31 passlib 32 python-dateutil 33 scramp 34 ] ++ lib.optionals (pythonOlder "3.8") [ 35 importlib-metadata 36 ]; 37 38 # Tests require a running PostgreSQL instance 39 doCheck = false; 40 41 pythonImportsCheck = [ 42 "pg8000" 43 ]; 44 45 meta = with lib; { 46 description = "Python driver for PostgreSQL"; 47 homepage = "https://github.com/tlocke/pg8000"; 48 changelog = "https://github.com/tlocke/pg8000#release-notes"; 49 license = with licenses; [ bsd3 ]; 50 maintainers = with maintainers; [ domenkozar ]; 51 platforms = platforms.unix; 52 }; 53}