summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/calmjs/default.nix
blob: 4a796bc24ab0b0a262c161e4182e7ab75559659b (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
  lib,
  fetchPypi,
  buildPythonPackage,
  calmjs-types,
  calmjs-parse,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "calmjs";
  version = "3.4.4";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-73NQiY1RMdBrMIlm/VTvHY4dCHL1pQoj6a48CWRos3o=";
    extension = "zip";
  };

  build-system = [
    setuptools
  ];

  propagatedBuildInputs = [
    calmjs-parse
    calmjs-types
  ];

  checkInputs = [ pytestCheckHook ];

  disabledTests = [
    # spacing changes in argparse output
    "test_integration_choices_in_list"
    # formatting changes in argparse output
    "test_sorted_case_insensitivity"
    "test_sorted_simple_first"
    "test_sorted_standard"
  ];

  # ModuleNotFoundError: No module named 'calmjs.types'
  # Not yet clear how to run these tests correctly
  # https://github.com/calmjs/calmjs/issues/63
  # https://github.com/NixOS/nixpkgs/pull/186298
  disabledTestPaths = [
    "src/calmjs/tests/test_dist.py"
    "src/calmjs/tests/test_testing.py"
    "src/calmjs/tests/test_artifact.py"
    "src/calmjs/tests/test_interrogate.py"
    "src/calmjs/tests/test_loaderplugin.py"
    "src/calmjs/tests/test_npm.py"
    "src/calmjs/tests/test_runtime.py"
    "src/calmjs/tests/test_toolchain.py"
    "src/calmjs/tests/test_vlqsm.py"
    "src/calmjs/tests/test_yarn.py"
    "src/calmjs/tests/test_command.py"
  ];

  pythonImportsCheck = [ "calmjs" ];

  meta = {
    description = "Framework for building toolchains and utilities for working with the Node.js ecosystem";
    mainProgram = "calmjs";
    homepage = "https://github.com/calmjs/calmjs";
    license = lib.licenses.gpl2;
    maintainers = with lib.maintainers; [ onny ];
  };
}