Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 689 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, pythonOlder 6, aenum 7, pytest 8, pytestcov 9}: 10 11buildPythonPackage rec { 12 pname = "pglast"; 13 version = "1.8"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "115067100fbb9eb36f530d94b64b4e1e36a8d304537af0847d562ff9ed399c05"; 18 }; 19 20 disabled = !isPy3k; 21 22 propagatedBuildInputs = lib.optionals (pythonOlder "3.6") [ aenum ]; 23 24 checkInputs = [ pytest pytestcov ]; 25 26 checkPhase = '' 27 pytest 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/lelit/pglast"; 32 description = "PostgreSQL Languages AST and statements prettifier"; 33 license = licenses.gpl3Plus; 34 maintainers = [ maintainers.marsam ]; 35 }; 36}