Hi listI'm packaging a project with pyproject-build-system which follows the src layout in python:
(define-public python-cfd-qsense
(package
(name "python-cfd-qsense")
(version "d02178fc02cfef00d7fa0584d552614e9bdf4c5e")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.com/hsr-iet/wabesense/cfd_qsense.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1ys5my2kfsr5w94k619qrdjm5wa7j45z11dw2ib2ha0wpc85aw4x"))))
(build-system pyproject-build-system)
(arguments
`(#:tests? #f ;; error in test suite
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "python" "-m" "unittest")))))))
(propagated-inputs (list
python-numpy
python-scipy
python-matplotlib
python-pyaml
python-pandas
python-numpy-stl
python-coolprop))
(home-page "https://gitlab.com/hsr-iet/wabesense/cfd_qsense")
(synopsis
"CFD simulation tool to produce pressure-discharge curve for water
spring taps.")
(description
"CFD simulation tool to produce pressure-discharge curve for water
spring taps.")
(license license:gpl3)))
When inheriting from this package like so:
(package
(inherit python-cfd-qsense)
(source (local-file %source-dir #:recursive? #t)))))
it is no longer importable as module cfd_qsense instead I have to import
src.cfd_qsense. Why is this behavior, when using the package as is
everything works fine.
Thanks for any help.
Cheers,
--
Reza Housseini
This message is signed with my GnuPG key:
C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52
OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
