|
|
@ -43,6 +43,7 @@ |
|
|
|
#:use-module (gnu packages sequoia) |
|
|
|
#:use-module (gnu packages sqlite) |
|
|
|
#:use-module (gnu packages tls) |
|
|
|
#:use-module (gnu packages version-control) |
|
|
|
#:use-module (gnu packages xml)) |
|
|
|
|
|
|
|
(define-public yml2 |
|
|
@ -213,16 +214,17 @@ ENGINE_INC_PATH=~a/include |
|
|
|
(define-public python-pep-adapter |
|
|
|
(package |
|
|
|
(name "python-pep-adapter") |
|
|
|
(version "2.1.3") |
|
|
|
(version "2.1.9") |
|
|
|
(source |
|
|
|
(origin |
|
|
|
(method git-fetch) |
|
|
|
(uri (git-reference |
|
|
|
(url "https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter") |
|
|
|
(commit version))) |
|
|
|
(url |
|
|
|
"https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter") |
|
|
|
(commit "6a715e199d15ec539482544cb48afe2d5ebfebc5"))) |
|
|
|
(file-name (git-file-name name version)) |
|
|
|
(sha256 |
|
|
|
(base32 "0ssz21p1k7xx3snmd4g3ggzq565rlzdmp90l2mph6yfp1y65p39s")))) |
|
|
|
(base32 "1r9krdxrllgk2xxl0lw5vjswg8drfc66mjargpxyf2bm5glm41s6")))) |
|
|
|
(build-system python-build-system) |
|
|
|
(arguments |
|
|
|
`(;; Adding configure-flags does not work, running `build_ext` |
|
|
@ -241,26 +243,21 @@ ENGINE_INC_PATH=~a/include |
|
|
|
;; (assoc-ref inputs "asn1c") "/share")) |
|
|
|
#:phases |
|
|
|
(modify-phases %standard-phases |
|
|
|
(add-before 'build 'fix-setup.py |
|
|
|
(add-before 'build 'fix-permissions |
|
|
|
(lambda _ |
|
|
|
(substitute* "setup.py" |
|
|
|
(("^(\\s+SYS_INCLUDES = )\\['/usr.*" _ a) |
|
|
|
(string-append a "os.getenv('CPATH', '').split(os.pathsep)\n")) |
|
|
|
(("^(\\s+SYS_LIB_PREFIXES = )\\['/usr.*" _ a) |
|
|
|
(string-append a "os.getenv('LIBRARY_PATH', '').split(os.pathsep)\n")) |
|
|
|
(("^(\\s+SYS_SHARES = )\\['/usr.*" _ a) |
|
|
|
(string-append a "['" (assoc-ref %build-inputs "asn1c") "/share']\n"))) |
|
|
|
#t)) |
|
|
|
(when (file-exists? "src/pEp/__version__.py") |
|
|
|
(chmod "src/pEp/__version__.py" #o644)))) |
|
|
|
(add-before 'build 'remove-wheel-requirement |
|
|
|
;; we dont't build a wheel |
|
|
|
(lambda _ |
|
|
|
(substitute* "setup.cfg" |
|
|
|
((" wheel *>= [0-9.]*") "")) |
|
|
|
((" wheel( *>= [0-9.]*)?") "")) |
|
|
|
(substitute* "pyproject.toml" |
|
|
|
(("\"wheel *>=.*\"") "")) |
|
|
|
(("\"wheel( *>=.*)?\"") "")) |
|
|
|
#t))))) |
|
|
|
(native-inputs |
|
|
|
`(("python-pytest" ,python-pytest) |
|
|
|
`(("git", git) ;; due to setuptools_scm |
|
|
|
("python-pytest" ,python-pytest) |
|
|
|
("python-pytest-forked" ,python-pytest-forked))) |
|
|
|
(inputs |
|
|
|
`(("boost-python" ,boost-with-python3) |
|
|
|