Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 816 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, passlib 5, pythonOlder 6, scramp 7}: 8 9buildPythonPackage rec { 10 pname = "pg8000"; 11 version = "1.19.4"; 12 disabled = pythonOlder "3.6"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-fJxtV1QbDyFT4jqNdZzrPXy5MIkY+6atnpL44OWpC8g="; 17 }; 18 19 propagatedBuildInputs = [ 20 passlib 21 scramp 22 ]; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "scramp==1.4.0" "scramp>=1.4.0" 27 ''; 28 29 # Tests require a running PostgreSQL instance 30 doCheck = false; 31 pythonImportsCheck = [ "pg8000" ]; 32 33 meta = with lib; { 34 description = "Python driver for PostgreSQL"; 35 homepage = "https://github.com/tlocke/pg8000"; 36 license = with licenses; [ bsd3 ]; 37 maintainers = with maintainers; [ domenkozar ]; 38 platforms = platforms.unix; 39 }; 40}