1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 # build-system
6 setuptools,
7 # dependencies
8 colcon,
9 importlib-metadata,
10 # tests
11 pytestCheckHook,
12 pytest-cov-stub,
13 scspell,
14 writableTmpDirAsHomeHook,
15}:
16
17buildPythonPackage rec {
18 pname = "colcon-installed-package-information";
19 version = "0.2.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "colcon";
24 repo = "colcon-installed-package-information";
25 tag = version;
26 hash = "sha256-7PjLWLwX5QwxWCN1iWOGB3cyArjnxQKT5BHmukj0MII=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 colcon
33 importlib-metadata
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-cov-stub
39 scspell
40 writableTmpDirAsHomeHook
41 ];
42
43 disabledTestPaths = [
44 # Skip the linter tests that require additional dependencies
45 "test/test_flake8.py"
46 ];
47
48 pythonImportsCheck = [ "colcon_installed_package_information" ];
49
50 meta = {
51 description = "Extensions for colcon to inspect packages which have already been installed";
52 homepage = "https://colcon.readthedocs.io/en/released/";
53 downloadPage = "https://github.com/colcon/colcon-installed-package-information";
54 license = lib.licenses.asl20;
55 maintainers = with lib.maintainers; [ guelakais ];
56 };
57}