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