nixos/pkgs/sqlfmt/default.nix

25 lines
555 B
Nix
Raw Permalink Normal View History

2024-06-15 00:50:30 +01:00
{ pkgs ? import <nixpkgs> { }
, fetchurl ? pkgs.fetchurl
, buildPythonPackage ? pkgs.python311Packages.buildPythonPackage
2024-06-15 00:50:30 +01:00
}:
buildPythonPackage {
pname = "shandy-sqlfmt";
version = "0.21.3";
format = "wheel";
2024-06-15 00:50:30 +01:00
src = fetchurl {
url = "https://github.com/tconbeer/sqlfmt/releases/download/v0.21.3/shandy_sqlfmt-0.21.3-py3-none-any.whl";
sha256 = "sha256-gb/gLAcGD7F/0LL6WllfX1CW4Tug//jNDA0v9O5tedA=";
2024-06-15 00:50:30 +01:00
};
doCheck = false;
2024-06-15 00:50:30 +01:00
propagatedBuildInputs = with pkgs.python311Packages; [
black
flake8
mypy
tqdm
jinja2
];
}