{ pkgs, fetchFromGitHub, }: pkgs.stdenv.mkDerivation { name = "sqlfmt-v0.21.3"; src = fetchFromGitHub { owner = "tconbeer"; repo = "sqlfmt"; rev = "v0.21.3"; sha256 = "1sx8gf13pwsw63v5hfnml18fs2lnb2piigc1d4q8hmiywzmhzf85"; }; #buildInputs = [ pkgs.python3 pkgs.isort pkgs.black pkgs.python311Packages.pytest pkgs.python311Packages.flake8 pkgs.python311Packages.mypy ]; buildInputs = [ pkgs.python3 pkgs.python311Packages.pip pkgs.isort pkgs.black pkgs.python311Packages.pytest pkgs.python311Packages.flake8 pkgs.python311Packages.mypy ]; installPhase = '' export PYTHONPATH="$\{python.sitePackages}:$PYTHONPATH" $\{python}/bin/pip install --prefix $out . ''; meta = { description = "sqlfmt is a tool that autoformats your SQL queries."; homepage = "https://github.com/tconbeer/sqlfmt"; license = "Apache 2.0"; }; }