From: "Hamzeh Nasajpour" <h.nasajpour@pantherx.org>
To: "John Soo" <jsoo1@asu.edu>
Cc: SuarezMiguelC via <help-guix@gnu.org>
Subject: Re: Error in package building : error[E0463]: can't find crate for `openssl_src`
Date: Wed, 21 Oct 2020 17:16:46 +0330 [thread overview]
Message-ID: <47a7d80e-0e3f-45bb-80c7-d2b829ad0149@www.fastmail.com> (raw)
In-Reply-To: <c70eac79-43da-4643-9182-b44e3381390a@Johns-iPhone>
This is my package definition till now. The repository of the package is here:
https://github.com/etesync/etebase-py/
Also I should to say I package these (since they aren't available in the upstream packages):
* openssl@0.10.30
* cpython@0.3
* etebase-rs
* flapigen-0.6
I didn't attach them here for simplicity.
```
(define-public python-etebase-py
(package
(name "python-etebase-py")
(version "0.30.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "etebase" version))
(sha256
(base32
"1py635aqnxx3jy4x6zffriqi0l9gc2gk06h0ms91k4rs68h0gb0i"))
(modules '((guix build utils)))
(snippet
'(begin
(substitute* "Cargo.toml"
(("etebase = " all) "#etebase = "))
(substitute* "Cargo.toml"
(("flapigen = " all) "flapigen = \"^0.6.0-pre7\" #"))
(substitute* "Cargo.toml"
(("0.10.30\"" all) "0.10.30\"}# "))
#t))))
(build-system cargo-build-system)
(arguments
`(#:tests? #f
#:cargo-inputs
(("rust-openssl" ,rust-openssl-0.10)
("rust-cpython" ,rust-cpython-0.3)
("rust-log" ,rust-log-0.4)
("rust-etebase-rs" ,rust-etebase-rs)
("rust-flapigen" ,rust-flapigen-0.6)
("rust-env-logger" ,rust-env-logger-0.7))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-env-var
(lambda* (#:key inputs #:allow-other-keys)
(let ((openssl (assoc-ref inputs "openssl")))
(invoke "rm" "setup.py")
(setenv "RUST_BACKTRACE" "full")
(setenv "OPENSSL_DIR" openssl))
#t))
)))
(native-inputs
`(("openssl" ,openssl)
("python-msgpack" ,python-msgpack)
("python-setuptools-rust" ,python-setuptools-rust)))
(inputs
`(("python" ,python)
; ("rust-etebase-rs" ,rust-etebase-rs)
))
(home-page "https://github.com/etesync/etebase-rs")
(synopsis "A python client library for EteSync.")
(description
"This module provides a python API to interact with an EteSync server.
It currently implements AddressBook and Calendar access, and supports two-way sync (both push and pull) to the server.")
(license license:gpl3)))
```
next prev parent reply other threads:[~2020-10-21 13:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-21 11:16 Error in package building : error[E0463]: can't find crate for `openssl_src` Hamzeh Nasajpour
2020-10-21 12:46 ` John Soo
2020-10-21 13:37 ` Hamzeh Nasajpour
2020-10-21 13:40 ` John Soo
2020-10-21 13:46 ` Hamzeh Nasajpour [this message]
2020-10-21 13:57 ` Hamzeh Nasajpour
2020-10-21 14:37 ` John Soo
2020-10-22 8:36 ` Hamzeh Nasajpour
2020-10-24 19:47 ` Efraim Flashner
2020-10-25 10:02 ` Hamzeh Nasajpour
2020-11-08 19:32 ` Hamzeh Nasajpour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47a7d80e-0e3f-45bb-80c7-d2b829ad0149@www.fastmail.com \
--to=h.nasajpour@pantherx.org \
--cc=help-guix@gnu.org \
--cc=jsoo1@asu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).