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