From ae7079af301d73896c7af00f3a65d3976d356951 Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 11 May 2024 16:57:07 -0500 Subject: add comedyGenerator; move stashley to python-xyz --- python-xyz.scm | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ stashley.scm | 51 -------------------------------- 2 files changed, 92 insertions(+), 51 deletions(-) create mode 100644 python-xyz.scm delete mode 100644 stashley.scm diff --git a/python-xyz.scm b/python-xyz.scm new file mode 100644 index 0000000..5a6e4b3 --- /dev/null +++ b/python-xyz.scm @@ -0,0 +1,92 @@ +(define-module (python-xyz) + #:use-module ((guix licenses) :prefix license:) + #:use-module (guix packages) + #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (gnu packages) + #:use-module (gnu packages wget) + #:use-module (gnu packages video) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages python-build) + #:use-module (sherlock) + ) +(define-public comedyGenerator + (package + (name "comedyGenerator") + (version "1.0.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.techchud.xyz/comedyGenerator") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0q3gq4sgr5j0lrh71am9a8am7vl13dibxg20apv3gyswiqc4bhps")))) + (build-system pyproject-build-system) + (arguments + '( + #:phases + (modify-phases %standard-phases + (delete 'check) + (delete 'sanity-check) + (add-after 'wrap 'wrap-ffmpeg + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((ffmpeg (string-append (assoc-ref inputs "ffmpeg") "/bin" ))) + (wrap-program (string-append (assoc-ref outputs "out") "/bin/comedyGenerator") + `("PATH" ":" prefix ,(list ffmpeg) ) )))) + ))) + + (inputs + (list + ffmpeg + python-xdg + python-requests + python-multiprocess + )) + (synopsis "Ifunny API scrapper for downloading videos and gifs.") + (description + "Ifunny API scrapper for downloading videos and gifs.") + (home-page "https://git.techchud.xyz/comedyGenerator/") + (license license:agpl3))) + +(define-public stashley + (package + (name "stashley") + (version "2.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.techchud.xyz/stashley") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1zrbw4b0jmczaf0dbp29vv2997n42l12nxwq4wji3zm9bwcgb4zg")))) + (build-system pyproject-build-system) + (arguments + '( + #:phases + (modify-phases %standard-phases + (delete 'check) + (delete 'sanity-check) + ))) + (inputs + (list + yt-dlp + gallery-dl + wget + python-tomli + python-tomli-w + python-sherlock + )) + (synopsis "Program using TOML files to archive personalities to IPFS") + (description + "Stashley is a program used for archiving personalities using + TOML files, and if IPFS is installed, pushing them to IPFS.") + (home-page "https://git.techchud.xyz/stashley/") + (license license:agpl3))) diff --git a/stashley.scm b/stashley.scm deleted file mode 100644 index fae6097..0000000 --- a/stashley.scm +++ /dev/null @@ -1,51 +0,0 @@ -(define-module (stashley) - #:use-module ((guix licenses) :prefix license:) - #:use-module (guix packages) - #:use-module (guix build-system pyproject) - #:use-module (guix build-system python) - #:use-module (guix download) - #:use-module (guix git-download) - #:use-module (gnu packages) - #:use-module (gnu packages wget) - #:use-module (gnu packages video) - #:use-module (gnu packages python-xyz) - #:use-module (gnu packages python-build) - #:use-module (sherlock) - ) - -(define-public stashley - (package - (name "stashley") - (version "2.0.1") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://git.techchud.xyz/stashley") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1zrbw4b0jmczaf0dbp29vv2997n42l12nxwq4wji3zm9bwcgb4zg")))) - (build-system pyproject-build-system) - (arguments - '( - #:phases - (modify-phases %standard-phases - (delete 'check) - (delete 'sanity-check) - ))) - (inputs - (list - yt-dlp - gallery-dl - wget - python-tomli - python-tomli-w - python-sherlock - )) - (synopsis "Program using TOML files to archive personalities to IPFS") - (description - "Stashley is a program used for archiving personalities using - TOML files, and if IPFS is installed, pushing them to IPFS.") - (home-page "https://git.techchud.xyz/stashley/") - (license license:agpl3))) -- cgit v1.2.3