GNU bug report logs -
#64700
[PATCH] gnu: Add python-core-sr-ht.
Previous Next
Reported by: Ricardo Wurmus <rekado <at> elephly.net>
Date: Tue, 18 Jul 2023 11:36:02 UTC
Severity: normal
Tags: patch
Done: Ricardo Wurmus <rekado <at> elephly.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 64700 in the body.
You can then email your comments to 64700 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#64700
; Package
guix-patches
.
(Tue, 18 Jul 2023 11:36:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 18 Jul 2023 11:36:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/sourcehut.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
---
gnu/local.mk | 1 +
gnu/packages/sourcehut.scm | 81 ++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
create mode 100644 gnu/packages/sourcehut.scm
diff --git a/gnu/local.mk b/gnu/local.mk
index 2767f5290b..3196f0241c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -580,6 +580,7 @@ GNU_SYSTEM_MODULES = \
%D%/packages/smalltalk.scm \
%D%/packages/sml.scm \
%D%/packages/solidity.scm \
+ %D%/packages/sourcehut.scm \
%D%/packages/speech.scm \
%D%/packages/sphinx.scm \
%D%/packages/spice.scm \
diff --git a/gnu/packages/sourcehut.scm b/gnu/packages/sourcehut.scm
new file mode 100644
index 0000000000..382c357d78
--- /dev/null
+++ b/gnu/packages/sourcehut.scm
@@ -0,0 +1,81 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2023 Ricardo Wurmus <rekado <at> elephly.net>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages sourcehut)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix utils)
+ #:use-module (guix packages)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix build-system pyproject)
+ #:use-module (gnu packages check)
+ #:use-module (gnu packages databases)
+ #:use-module (gnu packages markup)
+ #:use-module (gnu packages monitoring)
+ #:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-check)
+ #:use-module (gnu packages python-crypto)
+ #:use-module (gnu packages python-web)
+ #:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages))
+
+(define-public python-core-sr-ht
+ (package
+ (name "python-core-sr-ht")
+ (version "0.69.15")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~sircmpwn/core.sr.ht")
+ (commit version)
+ (recursive? #true)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "00d633lmdiqamyv24szmd441dhkjh1n1qkvf47vn57da0z1rxp2g"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #false ;there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _ (setenv "PKGVER" #$version))))))
+ (propagated-inputs
+ (list python-alembic
+ python-beautifulsoup4
+ python-bleach
+ python-celery
+ python-cryptography
+ python-flask
+ python-humanize
+ python-markdown
+ python-mistletoe
+ python-prometheus-client
+ python-psycopg2
+ python-pygments
+ python-redis
+ python-requests
+ python-sqlalchemy
+ python-sqlalchemy-utils))
+ (home-page "https://git.sr.ht/~sircmpwn/core.sr.ht")
+ (synopsis "Shared code for all sourcehut projects")
+ (description
+ "This package contains code shared among all sr.ht projects.")
+ (license license:bsd-3)))
base-commit: 3a3752400d7a70a295a27b66f29457aeeaa2cf27
--
2.40.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#64700
; Package
guix-patches
.
(Tue, 18 Jul 2023 12:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 64700 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/sourcehut.scm (python-scm-sr-ht): New variable.
---
gnu/packages/sourcehut.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/sourcehut.scm b/gnu/packages/sourcehut.scm
index 382c357d78..9222101b84 100644
--- a/gnu/packages/sourcehut.scm
+++ b/gnu/packages/sourcehut.scm
@@ -79,3 +79,34 @@ (define-public python-core-sr-ht
(description
"This package contains code shared among all sr.ht projects.")
(license license:bsd-3)))
+
+(define-public python-scm-sr-ht
+ (package
+ (name "python-scm-sr-ht")
+ (version "0.22.23")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.sr.ht/~sircmpwn/scm.sr.ht")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1p1nlwqfqfb89nky8sp4jh4vjnh8fm2mdx8inziqs3898qw1v7yk"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #false ;there are none
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-version
+ (lambda _ (setenv "PKGVER" #$version))))))
+ (propagated-inputs
+ (list python-core-sr-ht))
+ (home-page "https://git.sr.ht/~sircmpwn/scm.sr.ht")
+ (synopsis "Shared support code for sr.ht source control services")
+ (description
+ "This package provides shared support code for sr.ht source control
+services.")
+ (license license:agpl3)))
base-commit: 3a3752400d7a70a295a27b66f29457aeeaa2cf27
prerequisite-patch-id: 80d1fed622f0306a9ff2f0ca55ed10a24b7f283a
--
2.40.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#64700
; Package
guix-patches
.
(Wed, 19 Jul 2023 07:09:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 64700 <at> debbugs.gnu.org (full text, mbox):
Hi Ricardo!
On Tue, 18 Jul 2023 19:35:16 +0800,
Ricardo Wurmus wrote:
>
> * gnu/packages/sourcehut.scm: New file.
> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
> ---
Good to know you are packaging sourcehut!
bootstrap is used as a git submodule in "srht/scss/bootstrap" and
would be intalled to the output, so I think it needs to be copied
there. And I have an origin definition for the version used by
core.sr.ht:
--8<---------------cut here---------------start------------->8---
(let ((name "bootstrap")
(version "4.1.1"))
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/twbs/bootstrap.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0gl7wd58yhdvwgbc2syd7ci2lz7alaaggnfjzdf9gngmva5gjf6l"))))
--8<---------------cut here---------------end--------------->8---
Then for the package names, how about srht-[...] or sourcehut-[...]?
Just a suggestion, I don't have any good reasons. :-)
Thanks
Information forwarded
to
guix-patches <at> gnu.org
:
bug#64700
; Package
guix-patches
.
(Wed, 19 Jul 2023 09:30:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 64700 <at> debbugs.gnu.org (full text, mbox):
Hi,
Hilton Chain <hako <at> ultrarare.space> writes:
> On Tue, 18 Jul 2023 19:35:16 +0800,
> Ricardo Wurmus wrote:
>>
>> * gnu/packages/sourcehut.scm: New file.
>> * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
>> ---
>
> Good to know you are packaging sourcehut!
>
> bootstrap is used as a git submodule in "srht/scss/bootstrap" and
> would be intalled to the output, so I think it needs to be copied
> there.
I’m fetching it with (recursive? #true) in the git-reference
declaration, so it is already there.
> Then for the package names, how about srht-[...] or sourcehut-[...]?
> Just a suggestion, I don't have any good reasons. :-)
I don’t know. I just went with our default naming scheme for Python
packages here: “python-” followed by the upstream repository name.
--
Ricardo
Information forwarded
to
guix-patches <at> gnu.org
:
bug#64700
; Package
guix-patches
.
(Wed, 19 Jul 2023 13:39:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 64700 <at> debbugs.gnu.org (full text, mbox):
On Wed, 19 Jul 2023 17:27:55 +0800,
Ricardo Wurmus wrote:
> I’m fetching it with (recursive? #true) in the git-reference
> declaration, so it is already there.
Aaaah!! Sorry, I skipped than line..
> I don’t know. I just went with our default naming scheme for Python
> packages here: “python-” followed by the upstream repository name.
FYI, existing names are:
Nix
- [...]srht
Alpine packages at sr.ht
- py3-scmsrht
- py3-srht
- [...].sr.ht
Arch packages at sr.ht
- python-scmsrht
- python-srht
- [...].sr.ht
Debian packages at sr.ht
- python3-scmsrht
- python3-srht
- python3-[...]srht and srht-[...]
Thanks
Reply sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
You have taken responsibility.
(Tue, 01 Aug 2023 07:46:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ricardo Wurmus <rekado <at> elephly.net>
:
bug acknowledged by developer.
(Tue, 01 Aug 2023 07:46:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 64700-done <at> debbugs.gnu.org (full text, mbox):
Applied, closing.
--
Ricardo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 29 Aug 2023 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.