diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d46b129329f..928e0aac9cf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -2311,7 +2311,7 @@ bits instead of primitive data types like @code{char}, @code{int}, etc.") | |||
| 2311 | (define-public python-cantools | 2311 | (define-public python-cantools |
| 2312 | (package | 2312 | (package |
| 2313 | (name "python-cantools") | 2313 | (name "python-cantools") |
| 2314 | (version "33.1.1") | 2314 | (version "37.0.7") |
| 2315 | (source | 2315 | (source |
| 2316 | (origin | 2316 | (origin |
| 2317 | ;; We take the sources from the Git repository as the documentation is | 2317 | ;; We take the sources from the Git repository as the documentation is |
| @@ -2323,34 +2323,36 @@ bits instead of primitive data types like @code{char}, @code{int}, etc.") | |||
| 2323 | (file-name (git-file-name name version)) | 2323 | (file-name (git-file-name name version)) |
| 2324 | (sha256 | 2324 | (sha256 |
| 2325 | (base32 | 2325 | (base32 |
| 2326 | "1aad137yd8b4jkfvlv812qsxmxcgra7g1p4wbxfsjy1cbf8fbq9q")))) | 2326 | "1qcf1fcwif7w70qmhxw2b8kqh420igbinq60p1chzf98xcb0ansx")))) |
| 2327 | (build-system python-build-system) | 2327 | (build-system python-build-system) |
| 2328 | (arguments | 2328 | (arguments |
| 2329 | `(#:phases | 2329 | (list |
| 2330 | (modify-phases %standard-phases | 2330 | #:phases |
| 2331 | (add-after 'build 'build-doc | 2331 | #~(modify-phases %standard-phases |
| 2332 | (lambda _ | 2332 | (add-after 'build 'build-doc |
| 2333 | ;; See: https://github.com/eerimoq/cantools/issues/190. | 2333 | (lambda _ |
| 2334 | (substitute* "README.rst" | 2334 | ;; See: https://github.com/eerimoq/cantools/issues/190. |
| 2335 | (("https://github.com/eerimoq/cantools/raw/master\ | 2335 | (substitute* "README.rst" |
| 2336 | (("https://github.com/eerimoq/cantools/raw/master\ | ||
| 2336 | /docs/monitor.png") | 2337 | /docs/monitor.png") |
| 2337 | "monitor.png")) | 2338 | "monitor.png")) |
| 2338 | (with-directory-excursion "docs" | 2339 | (invoke "make" "-C" "docs" "man" "info"))) |
| 2339 | (invoke "make" "man" "info")))) | 2340 | (add-after 'install 'install-doc |
| 2340 | (add-after 'install 'install-doc | 2341 | (lambda* (#:key outputs #:allow-other-keys) |
| 2341 | (lambda* (#:key outputs #:allow-other-keys) | 2342 | (let* ((info (string-append #$output "/share/info")) |
| 2342 | (let* ((out (assoc-ref outputs "out")) | 2343 | (man1 (string-append #$output "/share/man/man1"))) |
| 2343 | (info (string-append out "/share/info")) | 2344 | (install-file "docs/_build/texinfo/cantools.info" info) |
| 2344 | (man1 (string-append out "/share/man/man1"))) | 2345 | (install-file "docs/_build/man/cantools.1" man1))))))) |
| 2345 | (format #t "CWD: ~s~%" (getcwd)) | 2346 | (native-inputs (list python-sphinx texinfo)) |
| 2346 | (install-file "docs/_build/texinfo/cantools.info" info) | 2347 | (propagated-inputs |
| 2347 | (install-file "docs/_build/man/cantools.1" man1) | 2348 | (list python-argparse-addons |
| 2348 | #t)))))) | 2349 | python-bitstruct |
| 2349 | (native-inputs | 2350 | python-can |
| 2350 | `(("sphinx" ,python-sphinx) | 2351 | python-crccheck |
| 2351 | ("texinfo" ,texinfo))) | 2352 | python-diskcache |
| 2352 | (propagated-inputs | 2353 | python-matplotlib |
| 2353 | (list python-bitstruct python-can python-diskcache python-textparser)) | 2354 | python-parameterized |
| 2355 | python-textparser)) | ||
| 2354 | (home-page "https://github.com/eerimoq/cantools") | 2356 | (home-page "https://github.com/eerimoq/cantools") |
| 2355 | (synopsis "Tools for the Controller Area Network (CAN) bus protocol") | 2357 | (synopsis "Tools for the Controller Area Network (CAN) bus protocol") |
| 2356 | (description "This package includes Controller Area Network (CAN) related | 2358 | (description "This package includes Controller Area Network (CAN) related |
