python313Packages.pluginbase: modernize, conan: 2.16.1 -> 2.21.0 (#449836)

This commit is contained in:
Fabian Affolter
2025-10-08 13:44:38 +00:00
committed by GitHub
2 changed files with 27 additions and 25 deletions
+13 -12
View File
@@ -1,27 +1,32 @@
{
lib,
stdenv,
cmake,
fetchFromGitHub,
git,
pkg-config,
xcbuild,
python3Packages,
xcbuild,
zlib,
cmake,
}:
python3Packages.buildPythonApplication rec {
pname = "conan";
version = "2.16.1";
version = "2.21.0";
pyproject = true;
src = fetchFromGitHub {
owner = "conan-io";
repo = "conan";
tag = version;
hash = "sha256-b+GVFy195wwQyWaiEMg1vVcWnkTB01IbQQsOHhQY6pY=";
hash = "sha256-D76K7s6zUy3hMOwkKXbsF4asrr7tGwC28MW5VaJvFBY=";
};
pythonRelaxDeps = [
"distro"
"urllib3"
];
build-system = with python3Packages; [ setuptools ];
dependencies =
@@ -49,11 +54,6 @@ python3Packages.buildPythonApplication rec {
pyopenssl
];
pythonRelaxDeps = [
"urllib3"
"distro"
];
nativeCheckInputs = [
git
pkg-config
@@ -61,12 +61,12 @@ python3Packages.buildPythonApplication rec {
]
++ lib.optionals (stdenv.hostPlatform.isDarwin) [ xcbuild.xcrun ]
++ (with python3Packages; [
cmake
mock
parameterized
pytest-xdist
pytestCheckHook
webtest
cmake
]);
dontUseCmakeConfigure = true;
@@ -82,8 +82,10 @@ python3Packages.buildPythonApplication rec {
"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
@@ -115,15 +117,14 @@ python3Packages.buildPythonApplication rec {
"test/functional/util/test_cmd_args_to_string.py"
"test/performance/test_large_graph.py"
"test/unittests/tools/env/test_env_files.py"
"test/integration/ui/exit_with_code_test.py"
];
meta = {
description = "Decentralized and portable C/C++ package manager";
mainProgram = "conan";
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";
};
}
@@ -2,30 +2,31 @@
lib,
fetchPypi,
buildPythonPackage,
pytest,
setuptools,
}:
buildPythonPackage rec {
version = "1.0.1";
format = "setuptools";
pname = "pluginbase";
version = "1.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "ff6c33a98fce232e9c73841d787a643de574937069f0d18147028d70d7dee287";
hash = "sha256-/2wzqY/OIy6cc4QdeHpkPeV0k3Bp8NGBRwKNcNfe4oc=";
};
nativeCheckInputs = [ pytest ];
build-system = [ setuptools ];
checkPhase = ''
cd tests
PYTHONPATH=.. pytest
'';
# https://github.com/mitsuhiko/pluginbase/issues/24
doCheck = false;
meta = with lib; {
pythonImportsCheck = [ "pluginbase" ];
meta = {
description = "Support library for building plugins systems in Python";
homepage = "https://github.com/mitsuhiko/pluginbase";
description = "Support library for building plugins sytems in Python";
license = licenses.bsd3;
platforms = platforms.all;
changelog = "https://github.com/mitsuhiko/pluginbase/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}