nixpkgs/pkgs/development/tools/build-managers/conan/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

92 lines
2.0 KiB
Nix
Raw Normal View History

2023-02-24 17:56:05 +00:00
{ lib
, stdenv
, fetchFromGitHub
, git
, pkg-config
, python3
, zlib
2023-02-24 17:56:05 +00:00
}:
2018-03-15 11:41:11 +00:00
python3.pkgs.buildPythonApplication rec {
2017-04-12 23:40:33 +00:00
pname = "conan";
version = "2.0.0";
format = "setuptools";
2017-04-12 23:40:33 +00:00
src = fetchFromGitHub {
owner = "conan-io";
repo = "conan";
2023-02-24 17:56:05 +00:00
rev = "refs/tags/${version}";
hash = "sha256-yx/MO5QAVKnGraQXJitXxaZooLtBqa+L04s73DwiE14=";
2018-07-24 07:38:55 +00:00
};
propagatedBuildInputs = with python3.pkgs; [
2020-03-22 14:45:49 +00:00
bottle
colorama
python-dateutil
2020-03-22 14:45:49 +00:00
distro
fasteners
jinja2
patch-ng
2020-03-22 14:45:49 +00:00
pluginbase
pygments
pyjwt
pylint # Not in `requirements.txt` but used in hooks, see https://github.com/conan-io/conan/pull/6152
2020-03-22 14:45:49 +00:00
pyyaml
requests
tqdm
urllib3
2023-02-24 17:56:05 +00:00
] ++ lib.optionals stdenv.isDarwin [
idna
cryptography
pyopenssl
];
nativeCheckInputs = [
2018-07-24 07:38:55 +00:00
git
pkg-config
zlib
] ++ (with python3.pkgs; [
2019-01-09 13:29:56 +00:00
mock
2018-03-15 11:41:11 +00:00
parameterized
pytest-xdist
pytestCheckHook
2018-03-15 11:41:11 +00:00
webtest
2018-07-24 07:38:55 +00:00
]);
2018-03-15 11:41:11 +00:00
pythonImportsCheck = [
"conan"
];
pytestFlagsArray = [
"-n"
"$NIX_BUILD_CORES"
];
disabledTests = [
# Tests require network access
"TestFTP"
];
disabledTestPaths = [
# Requires cmake, meson, autotools, apt-get, etc.
"conans/test/functional/command/new_test.py"
"conans/test/functional/command/test_install_deploy.py"
"conans/test/functional/layout/test_editable_cmake.py"
"conans/test/functional/layout/test_in_subfolder.py"
"conans/test/functional/layout/test_source_folder.py"
"conans/test/functional/toolchains/"
"conans/test/functional/tools_versions_test.py"
"conans/test/functional/tools/system/package_manager_test.py"
"conans/test/functional/util/test_cmd_args_to_string.py"
"conans/test/unittests/tools/env/test_env_files.py"
];
2017-04-12 23:40:33 +00:00
2017-11-13 19:08:07 +00:00
meta = with lib; {
2017-04-12 23:40:33 +00:00
description = "Decentralized and portable C/C++ package manager";
2023-02-24 17:54:04 +00:00
homepage = "https://conan.io";
changelog = "https://github.com/conan-io/conan/releases/tag/${version}";
2017-04-12 23:40:33 +00:00
license = licenses.mit;
2019-01-09 13:29:56 +00:00
maintainers = with maintainers; [ HaoZeke ];
2017-04-12 23:40:33 +00:00
};
}