python310Packages.pybind11 0 -> 1 attrpath: python310Packages.pybind11 Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/c32gsxlxwlxr5bd47mnqghqgjlgf6596-packages.json.drv building '/nix/store/c32gsxlxwlxr5bd47mnqghqgjlgf6596-packages.json.drv'... Going to be running update for following packages: - python3.10-pybind11-2.10.4 Press Enter key to continue... Running update for: - python3.10-pybind11-2.10.4: UPDATING ... - python3.10-pybind11-2.10.4: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix index ef112d3bb61..763d59bd197 100644 --- a/pkgs/development/python-modules/pybind11/default.nix +++ b/pkgs/development/python-modules/pybind11/default.nix @@ -24,13 +24,13 @@ } ./setup-hook.sh; in buildPythonPackage rec { pname = "pybind11"; - version = "2.10.4"; + version = "2.11.1"; src = fetchFromGitHub { owner = "pybind"; repo = pname; - rev = "v${version}"; - hash = "sha256-n7nLEG2+sSR9wnxM+C8FWc2B+Mx74Pan1+IQf+h2bGU="; + rev = "refs/tags/v${version}"; + hash = "sha256-sO/Fa+QrAKyq2EYyYMcjPrYI+bdJIrDoj6L3JHoDo3E="; }; postPatch = '' No auto update branch exists Old version 2.10.4" not present in staging derivation file with contents: { stdenv , lib , buildPythonPackage , pythonOlder , fetchFromGitHub , cmake , boost , eigen , python , catch , numpy , pytestCheckHook , libxcrypt , makeSetupHook }: let setupHook = makeSetupHook { name = "pybind11-setup-hook"; substitutions = { out = placeholder "out"; pythonInterpreter = python.pythonForBuild.interpreter; pythonIncludeDir = "${python}/include/python${python.pythonVersion}"; pythonSitePackages = "${python}/${python.sitePackages}"; }; } ./setup-hook.sh; in buildPythonPackage rec { pname = "pybind11"; version = "2.11.1"; src = fetchFromGitHub { owner = "pybind"; repo = pname; rev = "v${version}"; hash = "sha256-sO/Fa+QrAKyq2EYyYMcjPrYI+bdJIrDoj6L3JHoDo3E="; }; postPatch = '' sed -i "/^timeout/d" pyproject.toml ''; nativeBuildInputs = [ cmake ]; buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; propagatedBuildInputs = [ setupHook ]; dontUseCmakeBuildDir = true; # Don't build tests if not needed, read the doInstallCheck value at runtime preConfigure = '' if [ -n "$doInstallCheck" ]; then cmakeFlagsArray+=("-DBUILD_TESTING=ON") fi ''; cmakeFlags = [ "-DBoost_INCLUDE_DIR=${lib.getDev boost}/include" "-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3" ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ "-DPYBIND11_CXX_STANDARD=-std=c++17" ]; postBuild = '' # build tests make -j $NIX_BUILD_CORES ''; postInstall = '' make install # Symlink the CMake-installed headers to the location expected by setuptools mkdir -p $out/include/${python.libPrefix} ln -sf $out/include/pybind11 $out/include/${python.libPrefix}/pybind11 ''; nativeCheckInputs = [ catch numpy pytestCheckHook ]; disabledTestPaths = [ # require dependencies not available in nixpkgs "tests/test_embed/test_trampoline.py" "tests/test_embed/test_interpreter.py" # numpy changed __repr__ output of numpy dtypes "tests/test_numpy_dtypes.py" # no need to test internal packaging "tests/extra_python_package/test_files.py" # tests that try to parse setuptools stdout "tests/extra_setuptools/test_setuphelper.py" ]; disabledTests = lib.optionals stdenv.isDarwin [ # expects KeyError, gets RuntimeError # https://github.com/pybind/pybind11/issues/4243 "test_cross_module_exception_translator" ]; meta = with lib; { homepage = "https://github.com/pybind/pybind11"; changelog = "https://github.com/pybind/pybind11/blob/${src.rev}/docs/changelog.rst"; description = "Seamless operability between C++11 and Python"; longDescription = '' Pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. ''; license = licenses.bsd3; maintainers = with maintainers; [ yuriaisaka dotlambda ]; }; }