summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ploomber-core/default.nix
blob: 52907f3127d178e8b95e5285a37e46d70dee9ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  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 ];
  };
}