Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: vdirsyncer #280970

Closed
toastal opened this issue Jan 14, 2024 · 4 comments
Closed

Build failure: vdirsyncer #280970

toastal opened this issue Jan 14, 2024 · 4 comments

Comments

@toastal
Copy link
Contributor

toastal commented Jan 14, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build vdirsyncer

Build log

$ nix log /nix/store/m6znwdvqzrgcv445fs1z9zsk5pf5mcxa-python3.11-vdirsyncer-0.19.2.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/m6znwdvqzrgcv445fs1z9zsk5pf5mcxa-python3.11-vdirsyncer-0.19.2.drv^*'
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/yd184sxfjq03bwa40na2grs0nmizbrns-vdirsyncer-0.19.2.tar.gz
source root is vdirsyncer-0.19.2
setting SOURCE_DATE_EPOCH to timestamp 1689261525 of file vdirsyncer-0.19.2/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Executing pypaBuildPhase
Setting SETUPTOOLS_SCM_PRETEND_VERSION to 0.19.2
Including all tracked files automatically
Creating a wheel...
* Getting build dependencies for wheel...
* Building wheel...
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/vdirsyncer
copying vdirsyncer/__init__.py -> build/lib/vdirsyncer
copying vdirsyncer/__main__.py -> build/lib/vdirsyncer
copying vdirsyncer/exceptions.py -> build/lib/vdirsyncer
copying vdirsyncer/http.py -> build/lib/vdirsyncer
copying vdirsyncer/metasync.py -> build/lib/vdirsyncer
copying vdirsyncer/repair.py -> build/lib/vdirsyncer
copying vdirsyncer/utils.py -> build/lib/vdirsyncer
copying vdirsyncer/version.py -> build/lib/vdirsyncer
copying vdirsyncer/vobject.py -> build/lib/vdirsyncer
creating build/lib/vdirsyncer/cli
copying vdirsyncer/cli/__init__.py -> build/lib/vdirsyncer/cli
copying vdirsyncer/cli/config.py -> build/lib/vdirsyncer/cli
copying vdirsyncer/cli/discover.py -> build/lib/vdirsyncer/cli
copying vdirsyncer/cli/fetchparams.py -> build/lib/vdirsyncer/cli
copying vdirsyncer/cli/tasks.py -> build/lib/vdirsyncer/cli
copying vdirsyncer/cli/utils.py -> build/lib/vdirsyncer/cli
creating build/lib/vdirsyncer/storage
copying vdirsyncer/storage/__init__.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/base.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/dav.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/filesystem.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/google.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/google_helpers.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/http.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/memory.py -> build/lib/vdirsyncer/storage
copying vdirsyncer/storage/singlefile.py -> build/lib/vdirsyncer/storage
creating build/lib/vdirsyncer/sync
copying vdirsyncer/sync/__init__.py -> build/lib/vdirsyncer/sync
copying vdirsyncer/sync/exceptions.py -> build/lib/vdirsyncer/sync
copying vdirsyncer/sync/status.py -> build/lib/vdirsyncer/sync
running egg_info
writing vdirsyncer.egg-info/PKG-INFO
writing dependency_links to vdirsyncer.egg-info/dependency_links.txt
writing entry points to vdirsyncer.egg-info/entry_points.txt
writing requirements to vdirsyncer.egg-info/requires.txt
writing top-level names to vdirsyncer.egg-info/top_level.txt
reading manifest file 'vdirsyncer.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docker'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'vdirsyncer.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/__init__.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/__main__.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/exceptions.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/http.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/metasync.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/repair.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/utils.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/version.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
copying build/lib/vdirsyncer/vobject.py -> build/bdist.linux-x86_64/wheel/vdirsyncer
creating build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/__init__.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/config.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/discover.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/fetchparams.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/tasks.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
copying build/lib/vdirsyncer/cli/utils.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/cli
creating build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/__init__.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/base.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/dav.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/filesystem.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/google.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/google_helpers.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/http.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/memory.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
copying build/lib/vdirsyncer/storage/singlefile.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/storage
creating build/bdist.linux-x86_64/wheel/vdirsyncer/sync
copying build/lib/vdirsyncer/sync/__init__.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/sync
copying build/lib/vdirsyncer/sync/exceptions.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/sync
copying build/lib/vdirsyncer/sync/status.py -> build/bdist.linux-x86_64/wheel/vdirsyncer/sync
running install_egg_info
Copying vdirsyncer.egg-info to build/bdist.linux-x86_64/wheel/vdirsyncer-0.19.2-py3.11.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/vdirsyncer-0.19.2.dist-info/WHEEL
creating '/build/vdirsyncer-0.19.2/dist/.tmp-693lvzgc/vdirsyncer-0.19.2-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'vdirsyncer/__init__.py'
adding 'vdirsyncer/__main__.py'
adding 'vdirsyncer/exceptions.py'
adding 'vdirsyncer/http.py'
adding 'vdirsyncer/metasync.py'
adding 'vdirsyncer/repair.py'
adding 'vdirsyncer/utils.py'
adding 'vdirsyncer/version.py'
adding 'vdirsyncer/vobject.py'
adding 'vdirsyncer/cli/__init__.py'
adding 'vdirsyncer/cli/config.py'
adding 'vdirsyncer/cli/discover.py'
adding 'vdirsyncer/cli/fetchparams.py'
adding 'vdirsyncer/cli/tasks.py'
adding 'vdirsyncer/cli/utils.py'
adding 'vdirsyncer/storage/__init__.py'
adding 'vdirsyncer/storage/base.py'
adding 'vdirsyncer/storage/dav.py'
adding 'vdirsyncer/storage/filesystem.py'
adding 'vdirsyncer/storage/google.py'
adding 'vdirsyncer/storage/google_helpers.py'
adding 'vdirsyncer/storage/http.py'
adding 'vdirsyncer/storage/memory.py'
adding 'vdirsyncer/storage/singlefile.py'
adding 'vdirsyncer/sync/__init__.py'
adding 'vdirsyncer/sync/exceptions.py'
adding 'vdirsyncer/sync/status.py'
adding 'vdirsyncer-0.19.2.dist-info/AUTHORS.rst'
adding 'vdirsyncer-0.19.2.dist-info/LICENSE'
adding 'vdirsyncer-0.19.2.dist-info/METADATA'
adding 'vdirsyncer-0.19.2.dist-info/WHEEL'
adding 'vdirsyncer-0.19.2.dist-info/entry_points.txt'
adding 'vdirsyncer-0.19.2.dist-info/top_level.txt'
adding 'vdirsyncer-0.19.2.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built vdirsyncer-0.19.2-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for vdirsyncer-0.19.2-py3-none-any.whl
  - aiostream<0.5.0,>=0.4.3 not satisfied by version 0.5.2

Additional context

Add any other context about the problem here.

Notify maintainers

@loewenheim

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix shell nixpkgs#nix-info --command nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.9-200.fc39.x86_64, Fedora Linux, 39 (KDE Plasma), nobuild`
 - multi-user?: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/xwl0am98klc8mz074jdyvpnyc6vwzlla-source`

Add a 👍 reaction to issues you find important.

@teto
Copy link
Member

teto commented Jan 15, 2024

haven't checked if the executable still works but at least it fixes the build.

diff --git a/pkgs/development/python-modules/vdirsyncer/default.nix b/pkgs/development/python-modules/vdirsyncer/default.nix
index 70446323f1d9..515c885221ec 100644
--- a/pkgs/development/python-modules/vdirsyncer/default.nix
+++ b/pkgs/development/python-modules/vdirsyncer/default.nix
@@ -38,6 +38,8 @@ buildPythonPackage rec {
 
   postPatch = ''
     sed -i -e '/--cov/d' -e '/--no-cov/d' pyproject.toml
+
+    substituteInPlace setup.py --replace '"aiostream>=0.4.3,<0.5.0",' '"aiostream>=0.4.3",'
   '';
 
   nativeBuildInputs = [

@dschrempf
Copy link
Contributor

dschrempf commented Jan 15, 2024

Closed by #280935 as far as I can see. Please reopen in case of troubles!

PR tracker: https://nixpk.gs/pr-tracker.html?pr=280935

@teto
Copy link
Member

teto commented Jan 15, 2024

didnt know about pythonRelaxDeps, pretty useful

@DamienCassou
Copy link
Contributor

Upstream issue: pimutils/vdirsyncer#1111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants