nixpkgs/pkgs/by-name/ai/airlift/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
998 B
Nix
Raw Normal View History

2023-10-29 15:06:37 +00:00
{ lib
, python3
, fetchPypi
, kubernetes-helm
, kind
, docker
}:
python3.pkgs.buildPythonApplication rec {
pname = "airlift";
pyproject = true;
2024-04-27 05:11:42 +00:00
version = "0.4.0";
2023-10-29 15:06:37 +00:00
src = fetchPypi {
inherit pname version;
2024-04-27 05:11:42 +00:00
hash = "sha256-JcW2FXl+SrdveRmG5bD1ttf6F3LwvGZQF4ZCTpDpPa8=";
2023-10-29 15:06:37 +00:00
};
postPatch = ''
sed -i '/argparse/d' pyproject.toml
'';
nativeBuildInputs = [
python3.pkgs.poetry-core
];
2023-10-29 15:06:37 +00:00
buildInputs = [
kubernetes-helm
kind
docker
];
2023-10-29 15:06:37 +00:00
propagatedBuildInputs = with python3.pkgs; [
halo
pyyaml
hiyapyco
jinja2
dotmap
requests
];
pythonImportsCheck = [
"airlift"
];
meta = with lib; {
description = "A flexible, configuration driven CLI for Apache Airflow local development";
homepage = "https://github.com/jl178/airlift";
license = licenses.mit;
changelog = "https://github.com/jl178/airlift/releases/tag/v${version}";
maintainers = with maintainers; [ jl178 ];
mainProgram = "airlift";
};
}