Subject: Re: [bug#77583] [PATCH] gnu: xandikos: Update to 0.2.12.

From: Ludovic Courtès <[email-masked]>
Date: Thu, 17 Apr 2025 22:50:17 +0200

David Pflug <[email-masked]> writes:

> * gnu/packages/dav.scm (xandikos): Update to 0.2.12.
>
> Change-Id: I50f6b1cfb8ddea5690d1aca9d503c6ab349b108a

Hi!  There was a missing paren, but even after fixing it, it fails to
build:

--8<---------------cut here---------------start------------->8---
adding license file 'AUTHORS'
writing manifest file 'xandikos.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "/tmp/guix-build-xandikos-0.2.12.drv-0/xandikos-0.2.12/setup.py", line 4, in <module>
    setup()
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site
-packages/setuptools/__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site
-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site
-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site
-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/dist.py", line 1221, in run_command
    super().run_command(command)
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/command/test.py", line 224, in run
    self.run_tests()
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/command/test.py", line 227, in run_tests
    test = unittest.main(
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/main.py", line 124, in parseArgs
    self._do_discovery(argv[2:])
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/main.py", line 244, in _do_discovery
    self.createTests(from_discovery=True, Loader=Loader)
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/main.py", line 154, in createTests
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/loader.py", line 349, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/loader.py", line 405, in _find_tests
    tests, should_recurse = self._find_test_path(
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/loader.py", line 483, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/tmp/guix-build-xandikos-0.2.12.drv-0/xandikos-0.2.12/xandikos/wsgi.py", line 42, in <module>
    backend = XandikosBackend(path=os.environ["XANDIKOSPATH"])
  File "/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py", line 679, in __getitem__
    raise KeyError(key) from None
KeyError: 'XANDIKOSPATH'
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("setup.py" "test" "-v") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 0.7 seconds
command "python" "setup.py" "test" "-v" failed with status 1
--8<---------------cut here---------------end--------------->8---

Could you take a look?

Thanks in advance,
Ludo’.