Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 690 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "sqlparse"; 10 version = "0.3.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0wxqrm9fpn4phz6rqm7kfd1wwkwzx376gs27nnalwx12q0lwlgbw"; 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}