unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54678] [PATCH] gnu: Add emacs-pyimport.
@ 2022-04-02  2:58 jgart via Guix-patches via
  2022-04-04 18:14 ` Maxime Devos
  2022-04-05 20:48 ` [bug#54678] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 2 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-04-02  2:58 UTC (permalink / raw)
  To: 54678; +Cc: jgart

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2222 bytes --]

* gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable.

Hi Guixers,

Here is emacs-pyimport.

Also available as a pre-release at https://whereis.みんな/

all best,

jgart
---
 gnu/packages/emacs-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index bc9a9f1c28..5b17fd9b65 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -30828,6 +30828,43 @@ (define-public emacs-org-modern
 headlines, keywords, tables and source blocks.")
    (license license:gpl3+)))
 
+(define-public emacs-pyimport
+  (let ((commit "a6f63cf7ed93f0c0f7c207e6595813966f8852b9")
+        (revision "0"))
+    (package
+      (name "emacs-pyimport")
+      (version (git-version "1.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/Wilfred/pyimport")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1q5gqhvh4zq5dy8vns694warcz48j1hdnxg16sjck4gsi9xivbvs"))))
+      (build-system emacs-build-system)
+      (inputs
+        (list python-pyflakes))
+      (propagated-inputs
+        (list emacs-dash emacs-s emacs-shut-up))
+      (arguments
+        (list #:phases
+              #~(modify-phases %standard-phases
+                  (add-after 'unpack 'patch-pyflakes-executable
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (let ((python-pyflakes (assoc-ref inputs "python-pyflakes")))
+                        (make-file-writable "pyimport.el")
+                        (substitute* "pyimport.el"
+                          (("\"pyflakes")
+                           (string-append "\"" python-pyflakes "/bin/pyflakes")))))))))
+      (home-page "https://github.com/Wilfred/pyimport")
+      (synopsis "Manage Python imports from Emacs")
+      (description
+"@code{emacs-pyimport} manages python imports from Emacs via @code{python-pyflakes}.")
+      (license license:gpl3+)))) ; License is in pyimport.el
+
 (define-public emacs-osm
   (package
     (name "emacs-osm")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH] gnu: Add emacs-pyimport.
  2022-04-02  2:58 [bug#54678] [PATCH] gnu: Add emacs-pyimport jgart via Guix-patches via
@ 2022-04-04 18:14 ` Maxime Devos
  2022-04-05 20:48 ` [bug#54678] [PATCH v2] " jgart via Guix-patches via
  1 sibling, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-04 18:14 UTC (permalink / raw)
  To: jgart, 54678

[-- Attachment #1: Type: text/plain, Size: 677 bytes --]

jgart via Guix-patches via schreef op vr 01-04-2022 om 22:58 [-0400]:
> +                      (let ((python-pyflakes (assoc-ref inputs "python-pyflakes")))
> +                        (make-file-writable "pyimport.el")
> +                        (substitute* "pyimport.el"
> +                          (("\"pyflakes")
> +                           (string-append "\"" python-pyflakes "/bin/pyflakes")))))))))

Input labels can be avoided here:

  (substitute* ...
    ...
    (string-append ... (search-input-file inputs "bin/pyflakes")))

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-04-02  2:58 [bug#54678] [PATCH] gnu: Add emacs-pyimport jgart via Guix-patches via
  2022-04-04 18:14 ` Maxime Devos
@ 2022-04-05 20:48 ` jgart via Guix-patches via
  2022-05-09 17:49   ` Maxime Devos
  2022-06-07 22:15   ` Nicolas Goaziou
  1 sibling, 2 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-04-05 20:48 UTC (permalink / raw)
  To: 54678; +Cc: Maxime Devos, jgart

* gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable.

Hi Maxime,

Here's a v2 with your suggestions.

Thanks for the code review.

all best,

jgart

---
 gnu/packages/emacs-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index bc9a9f1c28..dcd1f07916 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -30828,6 +30828,43 @@ (define-public emacs-org-modern
 headlines, keywords, tables and source blocks.")
    (license license:gpl3+)))
 
+(define-public emacs-pyimport
+  (let ((commit "a6f63cf7ed93f0c0f7c207e6595813966f8852b9")
+        (revision "0"))
+    (package
+      (name "emacs-pyimport")
+      (version (git-version "1.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri
+          (git-reference
+           (url "https://github.com/Wilfred/pyimport")
+           (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1q5gqhvh4zq5dy8vns694warcz48j1hdnxg16sjck4gsi9xivbvs"))))
+      (build-system emacs-build-system)
+      (inputs
+        (list python-pyflakes))
+      (propagated-inputs
+        (list emacs-dash emacs-s emacs-shut-up))
+      (arguments
+        (list #:phases
+              #~(modify-phases %standard-phases
+                  (add-after 'unpack 'patch-pyflakes-executable
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (let ((pyflakes (search-input-file inputs "/bin/pyflakes")))
+                        (make-file-writable "pyimport.el")
+                        (substitute* "pyimport.el"
+                          (("\"pyflakes")
+                           (string-append "\"" pyflakes)))))))))
+      (home-page "https://github.com/Wilfred/pyimport")
+      (synopsis "Manage Python imports from Emacs")
+      (description
+"@code{emacs-pyimport} manages python imports from Emacs via @code{python-pyflakes}.")
+      (license license:gpl3+)))) ; License is in pyimport.el
+
 (define-public emacs-osm
   (package
     (name "emacs-osm")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-04-05 20:48 ` [bug#54678] [PATCH v2] " jgart via Guix-patches via
@ 2022-05-09 17:49   ` Maxime Devos
  2022-06-07 22:15   ` Nicolas Goaziou
  1 sibling, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-09 17:49 UTC (permalink / raw)
  To: jgart, 54678

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

jgart schreef op di 05-04-2022 om 16:48 [-0400]:
> +      (license license:gpl3+)))) ; License is in pyimport.el

The license header is present, but the actual license text is missing,
and the GPL requires:

> and give all recipients a copy of this License along with the Program.

Looks like upstream forgot a file ...

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-04-05 20:48 ` [bug#54678] [PATCH v2] " jgart via Guix-patches via
  2022-05-09 17:49   ` Maxime Devos
@ 2022-06-07 22:15   ` Nicolas Goaziou
  2022-06-08  7:52     ` Maxime Devos
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2022-06-07 22:15 UTC (permalink / raw)
  To: 54678; +Cc: Maxime Devos, 54678-done, jgart

Hello,

jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-06-07 22:15   ` Nicolas Goaziou
@ 2022-06-08  7:52     ` Maxime Devos
  2022-06-10  9:08       ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-06-08  7:52 UTC (permalink / raw)
  To: mail, 54678; +Cc: 54678-done, jgart

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

reopen 54678
thanks

Nicolas Goaziou schreef op wo 08-06-2022 om 00:15 [+0200]:
> jgart via Guix-patches via <guix-patches@gnu.org> writes:
> 
> > * gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable.
> 
> Applied. Thank you.

What about <https://issues.guix.gnu.org/54678#3>?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-06-08  7:52     ` Maxime Devos
@ 2022-06-10  9:08       ` Nicolas Goaziou
  2022-06-10 15:05         ` Maxime Devos
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2022-06-10  9:08 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 54678, 54678-done, jgart

Hello,

Maxime Devos <maximedevos@telenet.be> writes:

> reopen 54678
> thanks
>
> Nicolas Goaziou schreef op wo 08-06-2022 om 00:15 [+0200]:
>> jgart via Guix-patches via <guix-patches@gnu.org> writes:
>> 
>> > * gnu/packages/emacs-xyz.scm (emacs-pyimport): New variable.
>> 
>> Applied. Thank you.
>
> What about <https://issues.guix.gnu.org/54678#3>?

I asked a similar question for a different package some months (years?)
ago. The decision was that we should assume good faith from the author,
even if the licensing is not perfect. In this situation, upstream intent
is clear, so there is no real issue.

Of course, it would be nice to help upstream have a correct licensing
process.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#54678] [PATCH v2] gnu: Add emacs-pyimport.
  2022-06-10  9:08       ` Nicolas Goaziou
@ 2022-06-10 15:05         ` Maxime Devos
  0 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-06-10 15:05 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 54678, 54678-done, jgart

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

Nicolas Goaziou schreef op vr 10-06-2022 om 11:08 [+0200]:
> [...]
> I asked a similar question for a different package some months (years?)
> ago. The decision was that we should assume good faith from the author,
> even if the licensing is not perfect. In this situation, upstream intent
> is clear, so there is no real issue.
> 
> Of course, it would be nice to help upstream have a correct licensing
> process.
> 
> Regards,

Thanks for your answer, I'll keep it in mind.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-10 15:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-02  2:58 [bug#54678] [PATCH] gnu: Add emacs-pyimport jgart via Guix-patches via
2022-04-04 18:14 ` Maxime Devos
2022-04-05 20:48 ` [bug#54678] [PATCH v2] " jgart via Guix-patches via
2022-05-09 17:49   ` Maxime Devos
2022-06-07 22:15   ` Nicolas Goaziou
2022-06-08  7:52     ` Maxime Devos
2022-06-10  9:08       ` Nicolas Goaziou
2022-06-10 15:05         ` Maxime Devos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).