feat(rofimoji): add

This commit is contained in:
Pavel Korytov 2021-10-31 22:48:17 +03:00
parent 62de2e063f
commit 13f667baeb
2 changed files with 71 additions and 0 deletions

View file

@ -15,6 +15,7 @@ I'll probably push what I can upstream when I figure Guix out.
| [[https://github.com/alfredopalhares/openvpn-update-resolv-conf][openvpn-update-resolv-conf]] | OK | Just watch out for $PATH if launched from OpenVPN |
| [[https://github.com/yt-dlp/yt-dlp][yt-dlp]] | OK | |
| [[https://anydesk.com/en][anydesk]] | OK | Installation from binaries; submitted to nonguix |
| [[https://github.com/fdw/rofimoji/][rofimoji]] | OK | But I had to create setup.py myself |
| [[https://github.com/deajan/osync][osync]] | Works | Requires shell commands as propagated-inputs |
| [[https://github.com/latex-lsp/texlab/][texlab]] | Works | Installation from binaries |
| [[https://gohugo.io/][hugo]] | Works | Installation from binaries |

70
rofimoji.scm Normal file
View file

@ -0,0 +1,70 @@
(define-module (rofimoji)
#:use-module (guix download)
#:use-module (guix build-system python)
#:use-module (guix packages)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages python-xyz))
(define-public python-rofimoji
(package
(name "python-rofimoji")
(version "5.3.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "rofimoji" version))
(sha256
(base32 "069r74yndrndab95xivccn6g1filfzv702yhcnrsjnw7nzv3kmrj"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'check)
(add-before 'build 'make-setup-py
(lambda* _
(with-output-to-file "setup.py"
(lambda _
(format #t
"
from setuptools import setup
setup(
name='rofimoji',
version='5.3.0',
description='Simple character picker using rofi',
author='fdw',
author_email='5821180+fdw@users.noreply.github.com',
url='https://github.com/fdw/rofimoji',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License'
],
package_dir={'': 'src'},
packages=['picker'],
package_data={
'picker': ['data/*.csv']
},
entry_points={
'console_scripts': [
'rofimoji = picker.rofimoji:main'
]
},
install_requires=[
'ConfigArgParse>0.15,<2.0.0'
],
data_files=[
('share/man/man1', ['src/picker/docs/rofimoji.1'])
]
)"
))))))))
(propagated-inputs
`(("python-configargparse" ,python-configargparse)
("xclip" ,xclip)
("xdotool" ,xdotool)
("wl-clipboard" ,wl-clipboard)))
(home-page "https://github.com/fdw/rofimoji")
(synopsis "Simple character picker using rofi")
(description "Simple character picker using rofi")
(license license:expat)))