summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/colcon-cd/default.nix
blob: d2711e0d04db4b0c3595383fc94a6f193a9bd8af (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
{
  buildPythonPackage,
  colcon,
  colcon-argcomplete,
  colcon-package-information,
  fetchFromGitHub,
  lib,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "colcon-cd";
  version = "0.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "colcon";
    repo = "colcon-cd";
    tag = version;
    hash = "sha256-eOo1DqTvYazr+wWraG9PZe0tTCgaAvhWtELG5rlaGSs=";
  };

  build-system = [ setuptools ];

  dependencies = [
    colcon
    colcon-package-information
  ];

  optional-dependencies = [ colcon-argcomplete ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [
    # Skip the linter tests that require additional dependencies
    "test/test_flake8.py"
    "test/test_spell_check.py"
  ];

  pythonImportsCheck = [ "colcon_cd" ];

  meta = {
    description = "A shell function for colcon-core to change the current working directory.";
    homepage = "https://github.com/colcon/colcon-cd";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ amronos ];
  };
}