depot/third_party/nixpkgs/pkgs/by-name/ai/airlift/package.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

53 lines
998 B
Nix

{ lib
, python3
, fetchPypi
, kubernetes-helm
, kind
, docker
}:
python3.pkgs.buildPythonApplication rec {
pname = "airlift";
pyproject = true;
version = "0.3.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-1LE3fpfX4NExJdUdSjt4BXvxQTLJ8zrRkGHkxo/6Pb8=";
};
postPatch = ''
sed -i '/argparse/d' pyproject.toml
'';
nativeBuildInputs = [
python3.pkgs.poetry-core
];
buildInputs = [
kubernetes-helm
kind
docker
];
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";
};
}