nixos/pkgs/sqlfmt/default.nix

28 lines
648 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
}:
2024-07-21 20:26:56 +01:00
let
version = "0.21.4"; # this needs to be fetched from github to get the latest
in
buildPythonPackage {
pname = "shandy-sqlfmt";
format = "wheel";
2024-07-21 20:26:56 +01:00
version = version;
2024-06-15 00:50:30 +01:00
src = fetchurl {
2024-07-21 20:26:56 +01:00
url = "https://github.com/tconbeer/sqlfmt/releases/download/v${version}/shandy_sqlfmt-${version}-py3-none-any.whl";
sha256 = "sha256-mS8afZtQxN/blaVgG2cBD/wnRZGxAwQWPJqtTji1IJk=";
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
];
}