Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 702 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "sqlparse"; 10 version = "0.2.4"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "ce028444cfab83be538752a2ffdb56bc417b7784ff35bb9a3062413717807dec"; 15 }; 16 17 checkInputs = [ pytest ]; 18 checkPhase = '' 19 py.test 20 ''; 21 22 # Package supports 3.x, but tests are clearly 2.x only. 23 doCheck = !isPy3k; 24 25 meta = with stdenv.lib; { 26 description = "Non-validating SQL parser for Python"; 27 longDescription = '' 28 Provides support for parsing, splitting and formatting SQL statements. 29 ''; 30 homepage = https://github.com/andialbrecht/sqlparse; 31 license = licenses.bsd3; 32 }; 33 34}