Skip to content

Commit

Permalink
python3Packages.kestra: init at 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DataHearth committed Jan 13, 2025
1 parent 21d7df2 commit 5b5048d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/development/python-modules/kestra/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
pytestCheckHook,
requests-mock,
}:
buildPythonPackage rec {
pname = "kestra";
version = "0.20.0";
pyproject = true;

src = fetchFromGitHub {
owner = "kestra-io";
repo = "libs";
rev = "v${version}";
hash = "sha256-Ck0eM3YZRRoORN77e46J9CG5Uj6Y7fNdVWAErT7LbpA=";
};

sourceRoot = "${src.name}/python";

build-system = [
setuptools
];

preBuild = ''
# Required for building the library (https://github.com/kestra-io/libs/blob/v0.20.0/python/setup.py#L20)
# The path resolve to CWD, so README.md isn't picked in the parent folder
ln -s ../README.md README.md
'';

dependencies = [
requests
];

pythonImportsCheck = [
"kestra"
];

nativeCheckInputs = [
pytestCheckHook
requests-mock
];

meta = {
description = "Infinitely scalable orchestration and scheduling platform, creating, running, scheduling, and monitoring millions of complex pipelines";
homepage = "https://github.com/kestra-io/libs";
license = lib.licenses.apsl20;
maintainers = with lib.maintainers; [ DataHearth ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6925,6 +6925,8 @@ self: super: with self; {

kerberos = callPackage ../development/python-modules/kerberos { };

kestra = callPackage ../development/python-modules/kestra { };

keyboard = callPackage ../development/python-modules/keyboard { };

keyring = callPackage ../development/python-modules/keyring { };
Expand Down

0 comments on commit 5b5048d

Please sign in to comment.