28 lines
648 B
Nix
28 lines
648 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, fetchurl ? pkgs.fetchurl
|
|
, buildPythonPackage ? pkgs.python311Packages.buildPythonPackage
|
|
}:
|
|
let
|
|
version = "0.21.4"; # this needs to be fetched from github to get the latest
|
|
in
|
|
buildPythonPackage {
|
|
pname = "shandy-sqlfmt";
|
|
format = "wheel";
|
|
version = version;
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/tconbeer/sqlfmt/releases/download/v${version}/shandy_sqlfmt-${version}-py3-none-any.whl";
|
|
sha256 = "sha256-mS8afZtQxN/blaVgG2cBD/wnRZGxAwQWPJqtTji1IJk=";
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = with pkgs.python311Packages; [
|
|
black
|
|
flake8
|
|
mypy
|
|
tqdm
|
|
jinja2
|
|
];
|
|
}
|