11 python3.pkgs.buildPythonApplication rec {
14 format = "setuptools";
16 src = fetchFromGitHub {
19 rev = "refs/tags/${version}";
20 hash = "sha256-1KKXOvoSAemzafWvBoYFtxqgSObHcXe3GVPgG25VNm0=";
23 nativeBuildInputs = with python3.pkgs; [
26 propagatedBuildInputs = with python3.pkgs; [
37 pylint # Not in `requirements.txt` but used in hooks, see https://github.com/conan-io/conan/pull/6152
42 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
52 ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [
54 ] ++ (with python3.pkgs; [
62 __darwinAllowLocalNetworking = true;
64 pythonImportsCheck = [
69 # Tests require network access
72 "test_shared_windows_find_libraries"
73 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
74 # Rejects paths containing nix
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
82 "test_xcrun_in_required_by_tool_requires"
83 "test_xcrun_in_tool_requires"
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"
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 ];