Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python38Packages.sqlparse: install manpage

+12 -10
+12 -10
pkgs/development/python-modules/sqlparse/default.nix
··· 1 - { stdenv 2 , buildPythonPackage 3 , fetchPypi 4 - , pytest 5 , isPy3k 6 }: 7 ··· 9 pname = "sqlparse"; 10 version = "0.4.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"; 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. ··· 30 homepage = "https://github.com/andialbrecht/sqlparse"; 31 license = licenses.bsd3; 32 }; 33 - 34 }
··· 1 + { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , installShellFiles 5 + , pytestCheckHook 6 , isPy3k 7 }: 8 ··· 10 pname = "sqlparse"; 11 version = "0.4.1"; 12 13 + disabled = !isPy3k; 14 + 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0f91fd2e829c44362cbcfab3e9ae12e22badaa8a29ad5ff599f9ec109f0454e8"; 18 }; 19 20 + nativeBuildInputs = [ installShellFiles ]; 21 22 + checkInputs = [ pytestCheckHook ]; 23 + 24 + postInstall = '' 25 + installManPage docs/sqlformat.1 26 + ''; 27 28 + meta = with lib; { 29 description = "Non-validating SQL parser for Python"; 30 longDescription = '' 31 Provides support for parsing, splitting and formatting SQL statements. ··· 33 homepage = "https://github.com/andialbrecht/sqlparse"; 34 license = licenses.bsd3; 35 }; 36 }