Files
nixpkgs/pkgs/by-name/co/conan/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

131 lines
3.1 KiB
Nix

{
lib,
stdenv,
cmake,
fetchFromGitHub,
git,
pkg-config,
python3Packages,
xcbuild,
zlib,
}:
python3Packages.buildPythonApplication rec {
pname = "conan";
version = "2.21.0";
pyproject = true;
src = fetchFromGitHub {
owner = "conan-io";
repo = "conan";
tag = version;
hash = "sha256-D76K7s6zUy3hMOwkKXbsF4asrr7tGwC28MW5VaJvFBY=";
};
pythonRelaxDeps = [
"distro"
"urllib3"
];
build-system = with python3Packages; [ setuptools ];
dependencies =
with python3Packages;
[
bottle
colorama
python-dateutil
distro
fasteners
jinja2
patch-ng
pluginbase
pygments
pyjwt
pylint # Not in `requirements.txt` but used in hooks, see https://github.com/conan-io/conan/pull/6152
pyyaml
requests
tqdm
urllib3
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
idna
cryptography
pyopenssl
];
nativeCheckInputs = [
git
pkg-config
zlib
]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ xcbuild.xcrun ]
++ (with python3Packages; [
cmake
mock
parameterized
pytest-xdist
pytestCheckHook
webtest
]);
dontUseCmakeConfigure = true;
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "conan" ];
disabledTests = [
# Tests require network access
"TestFTP"
# Unstable test
"test_shared_windows_find_libraries"
# 'cmake' tool version 'Any' is not available
"test_build"
"test_conan_new_compiles"
# 'cmake' tool version '3.27' is not available
"test_metabuild"
"test_new_template_and_different_folder"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Rejects paths containing nix
"test_conditional_os"
# Requires Apple Clang
"test_detect_default_compilers"
"test_detect_default_in_mac_os_using_gcc_as_default"
# Incompatible with darwin.xattr and xcbuild from nixpkgs
"test_dot_files"
"test_xcrun"
"test_xcrun_in_required_by_tool_requires"
"test_xcrun_in_tool_requires"
];
disabledTestPaths = [
# Requires cmake, meson, autotools, apt-get, etc.
"test/functional/command/runner_test.py"
"test/functional/command/test_install_deploy.py"
"test/functional/layout/test_editable_cmake.py"
"test/functional/layout/test_editable_cmake_components.py"
"test/functional/layout/test_in_subfolder.py"
"test/functional/layout/test_source_folder.py"
"test/functional/test_local_recipes_index.py"
"test/functional/test_profile_detect_api.py"
"test/functional/toolchains/"
"test/functional/tools/scm/test_git.py"
"test/functional/tools/system/package_manager_test.py"
"test/functional/tools_versions_test.py"
"test/functional/util/test_cmd_args_to_string.py"
"test/performance/test_large_graph.py"
"test/unittests/tools/env/test_env_files.py"
];
meta = {
description = "Decentralized and portable C/C++ package manager";
homepage = "https://conan.io";
changelog = "https://github.com/conan-io/conan/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ HaoZeke ];
mainProgram = "conan";
};
}