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