2024-06-15 00:50:30 +01:00
|
|
|
{ pkgs ? import <nixpkgs> { }
|
2024-06-23 12:29:49 +01:00
|
|
|
, 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
|
2024-06-23 12:29:49 +01:00
|
|
|
buildPythonPackage {
|
|
|
|
pname = "shandy-sqlfmt";
|
|
|
|
format = "wheel";
|
2024-07-21 20:26:56 +01:00
|
|
|
version = version;
|
2024-06-15 00:50:30 +01:00
|
|
|
|
2024-06-23 12:29:49 +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
|
|
|
};
|
|
|
|
|
2024-06-23 12:29:49 +01:00
|
|
|
doCheck = false;
|
2024-06-15 00:50:30 +01:00
|
|
|
|
2024-06-23 12:29:49 +01:00
|
|
|
propagatedBuildInputs = with pkgs.python311Packages; [
|
|
|
|
black
|
|
|
|
flake8
|
|
|
|
mypy
|
|
|
|
tqdm
|
|
|
|
jinja2
|
|
|
|
];
|
|
|
|
}
|