GNU bug report logs -
#34204
[PATCH 0/3] Mkdocs and its dependencies
Previous Next
Reported by: Mathieu Lirzin <mthl <at> gnu.org>
Date: Sat, 26 Jan 2019 00:27:02 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 34204 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello Ricardo,
Ricardo Wurmus <rekado <at> elephly.net> writes:
>> * gnu/packages/documentation.scm (mkdocs): New variable.
> […]
>> +
>> +(define-public mkdocs
>> + (package
>> + (name "mkdocs")
>> + (version "1.0.4")
>> + (source
>> + (origin
>> + (method url-fetch)
>> + (uri (pypi-uri "mkdocs" version))
>> + (sha256
>> + (base32
>> + "0fg9w6rdskwnn7knri7xzrd26k9svwqlxvdr0kk5spfpm8ll7lqp"))))
>> + (build-system python-build-system)
>> + (arguments
>> + ;; XXX: Tests are failing.
>> + ;; AttributeError: module 'mkdocs.plugins' has no attribute 'get_plugins'
>> + '(#:tests? #f))
>
> Hmm, any idea why this happens? Are the plugins not included? Is there
> an upstream bug report about this?
I didn't dig much, but after some search I have found the Nix package
definition [1] and it seems that the test suite requires ‘nosetests’ and
excludes 3 tests needs to be excluded to make the test suite pass.
Without worrying about how to exclude tests for now, I tried to add the
following to the ‘mkdocs’ package definition:
(arguments '(#:test-target "nosetests"))
(native-inputs
`(("python-mock" ,python-mock)
("python-nose" ,python-nose)))
I get errors like the following:
--8<---------------cut here---------------start------------->8---
AssertionError: ([('docs_dir', ValidationError("The path /tmp/guix-build-mkdocs-1.0.4.drv-0/mkdocs-1.0.4/mkdocs/tests/integration/minimal/docs isn't an existing directory."))], [])
--8<---------------cut here---------------end--------------->8---
Any idea how to fix this kind of issue?
You can take a look at the attached build log for more details.
Thanks
[r0laiz4fzy8v4mrmh90h4lg0zn2kak-mkdocs-1.0.4.drv.bz2 (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]
[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/documentation/mkdocs/default.nix
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
This bug report was last modified 3 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.