forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / co / conan / package.nix
blobebd96f12693cb0fbcac383b701a8eab62dd5eec3
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , git
5 , pkg-config
6 , xcbuild
7 , python3
8 , zlib
9 }:
11 python3.pkgs.buildPythonApplication rec {
12   pname = "conan";
13   version = "2.9.1";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "conan-io";
18     repo = "conan";
19     rev = "refs/tags/${version}";
20     hash = "sha256-1KKXOvoSAemzafWvBoYFtxqgSObHcXe3GVPgG25VNm0=";
21   };
23   nativeBuildInputs = with python3.pkgs; [
24   ];
26   propagatedBuildInputs = with python3.pkgs; [
27     bottle
28     colorama
29     python-dateutil
30     distro
31     fasteners
32     jinja2
33     patch-ng
34     pluginbase
35     pygments
36     pyjwt
37     pylint # Not in `requirements.txt` but used in hooks, see https://github.com/conan-io/conan/pull/6152
38     pyyaml
39     requests
40     tqdm
41     urllib3
42   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
43     idna
44     cryptography
45     pyopenssl
46   ];
48   nativeCheckInputs = [
49     git
50     pkg-config
51     zlib
52   ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
53     xcbuild.xcrun
54   ] ++ (with python3.pkgs; [
55     mock
56     parameterized
57     pytest-xdist
58     pytestCheckHook
59     webtest
60   ]);
62   __darwinAllowLocalNetworking = true;
64   pythonImportsCheck = [
65     "conan"
66   ];
68   disabledTests = [
69     # Tests require network access
70     "TestFTP"
71     # Unstable test
72     "test_shared_windows_find_libraries"
73   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
74     # Rejects paths containing nix
75     "test_conditional_os"
76     # Requires Apple Clang
77     "test_detect_default_compilers"
78     "test_detect_default_in_mac_os_using_gcc_as_default"
79     # Incompatible with darwin.xattr and xcbuild from nixpkgs
80     "test_dot_files"
81     "test_xcrun"
82     "test_xcrun_in_required_by_tool_requires"
83     "test_xcrun_in_tool_requires"
84   ];
86   disabledTestPaths = [
87     # Requires cmake, meson, autotools, apt-get, etc.
88     "test/functional/command/runner_test.py"
89     "test/functional/command/test_install_deploy.py"
90     "test/functional/layout/test_editable_cmake.py"
91     "test/functional/layout/test_editable_cmake_components.py"
92     "test/functional/layout/test_in_subfolder.py"
93     "test/functional/layout/test_source_folder.py"
94     "test/functional/test_local_recipes_index.py"
95     "test/functional/test_profile_detect_api.py"
96     "test/functional/toolchains/"
97     "test/functional/tools/scm/test_git.py"
98     "test/functional/tools/system/package_manager_test.py"
99     "test/functional/tools_versions_test.py"
100     "test/functional/util/test_cmd_args_to_string.py"
101     "test/integration/command/user_test.py"
102     "test/integration/command_v2/list_test.py"
103     "test/performance/test_large_graph.py"
104     "test/unittests/tools/env/test_env_files.py"
105   ];
107   meta = with lib; {
108     description = "Decentralized and portable C/C++ package manager";
109     mainProgram = "conan";
110     homepage = "https://conan.io";
111     changelog = "https://github.com/conan-io/conan/releases/tag/${version}";
112     license = licenses.mit;
113     maintainers = with maintainers; [ HaoZeke ];
114   };