at master 993 B 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.4"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-5+zOQzmJHyewsi4veeue/kQRi9OEIHNZ/Bg1D3iKzgA="; 24 }; 25 26 build-system = [ 27 hatchling 28 versioningit 29 ]; 30 31 dependencies = [ 32 passlib 33 python-dateutil 34 scramp 35 ] 36 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; 37 38 # Tests require a running PostgreSQL instance 39 doCheck = false; 40 41 pythonImportsCheck = [ "pg8000" ]; 42 43 meta = with lib; { 44 description = "Python driver for PostgreSQL"; 45 homepage = "https://github.com/tlocke/pg8000"; 46 changelog = "https://github.com/tlocke/pg8000#release-notes"; 47 license = with licenses; [ bsd3 ]; 48 maintainers = with maintainers; [ ]; 49 platforms = platforms.unix; 50 }; 51}