Files
nixpkgs/pkgs/development/python-modules/ploomber-core/default.nix
2025-08-22 03:28:02 +00:00

49 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyyaml,
posthog,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage rec {
pname = "ploomber-core";
version = "0.2.27";
pyproject = true;
src = fetchFromGitHub {
owner = "ploomber";
repo = "core";
tag = version;
hash = "sha256-/HlJxaxsGbZ1UIJNwDdzJLR4bey7bv/qsmFmVi8eWjQ=";
};
build-system = [ setuptools ];
dependencies = [
pyyaml
posthog
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"telemetry" # requires network
"exceptions" # requires stderr capture
];
pythonImportsCheck = [ "ploomber_core" ];
meta = {
description = "Core module shared across Ploomber projects";
homepage = "https://github.com/ploomber/core";
changelog = "https://github.com/ploomber/core/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ euxane ];
};
}