1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 # build-system
6 setuptools,
7 #dependencies
8 colcon,
9 pyaml,
10 # tests
11 pytestCheckHook,
12 pytest-cov-stub,
13 pytest-repeat,
14 pytest-rerunfailures,
15 scspell,
16 writableTmpDirAsHomeHook,
17}:
18buildPythonPackage rec {
19 pname = "colcon-defaults";
20 version = "0.2.9";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "colcon";
25 repo = "colcon-defaults";
26 tag = version;
27 hash = "sha256-Nb6D9jpbCvUnCNgRLBgWQFybNx0hyWVLSKj6gmTWjVs=";
28 };
29
30 build-system = [
31 setuptools
32 ];
33
34 dependencies = [
35 colcon
36 pyaml
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 pytest-cov-stub
42 pytest-repeat
43 pytest-rerunfailures
44 scspell
45 writableTmpDirAsHomeHook
46 ];
47
48 disabledTestPaths = [
49 # Skip formatting checks to prevent depending on flake8
50 "test/test_flake8.py"
51 ];
52
53 pythonImportsCheck = [ "colcon_defaults" ];
54
55 meta = {
56 description = "Extension for colcon to read defaults from a config file";
57 homepage = "https://github.com/colcon/colcon-defaults";
58 license = lib.licenses.asl20;
59 maintainers = with lib.maintainers; [ guelakais ];
60 };
61}