From 0e9053160380a33868e432c92ea33453e70fd348 Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Tue, 12 Mar 2024 17:57:22 +0100 Subject: [PATCH] . --- zilti/packages/python.scm | 142 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 zilti/packages/python.scm diff --git a/zilti/packages/python.scm b/zilti/packages/python.scm new file mode 100644 index 0000000..b751b85 --- /dev/null +++ b/zilti/packages/python.scm @@ -0,0 +1,142 @@ +(define-module (zilti packages python) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix git-download) + #:use-module (guix build-system copy) + #:use-module (guix build-system gnu) + #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (gnu packages) + #:use-module (gnu packages admin) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages curl) + #:use-module (gnu packages databases) + #:use-module (gnu packages django) + #:use-module (gnu packages freedesktop) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnupg) + #:use-module (gnu packages graphviz) + #:use-module (gnu packages groff) + #:use-module (gnu packages libevent) + #:use-module (gnu packages libffi) + #:use-module (gnu packages linux) + #:use-module (gnu packages node) + #:use-module (gnu packages openstack) + #:use-module (gnu packages pcre) + #:use-module (gnu packages protobuf) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) + #:use-module (gnu packages python-compression) + #:use-module (gnu packages python-crypto) + #:use-module (gnu packages python-science) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages qt) + #:use-module (gnu packages rdf) + #:use-module (gnu packages rpc) + #:use-module (gnu packages serialization) + #:use-module (gnu packages sphinx) + #:use-module (gnu packages texinfo) + #:use-module (gnu packages tls) + #:use-module (gnu packages time) + #:use-module (gnu packages version-control) + #:use-module (gnu packages web) + #:use-module (gnu packages xml) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (srfi srfi-1)) + +(define-public python-ruamel-base + (package + (name "python-ruamel-base") + (version "1.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ruamel.base" version)) + (sha256 + (base32 + "1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) + (home-page "https://aws.amazon.com/cli/") + (synopsis "Command line client for AWS") + (description "AWS CLI provides a unified command line interface to the +Amazon Web Services (AWS) API.") + (license license:asl2.0))) + +(define-public python-ruamel-yaml + (package + (name "python-ruamel-yaml") + (version "0.17.32") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ruamel.yaml" version)) + (sha256 + (base32 + "1hpg033cyw7h3kv44qxbb443phikdnx5qalp892y250rfrir14zc")))) + (build-system python-build-system) + (arguments + '(#:tests? #f)) + (inputs + (list python-ruamel-base)) + (home-page "https://aws.amazon.com/cli/") + (synopsis "Command line client for AWS") + (description "AWS CLI provides a unified command line interface to the +Amazon Web Services (AWS) API.") + (license license:asl2.0))) + +(define-public awscli-2 + (package + ;; Note: updating awscli typically requires updating botocore as well. + (name "awscli") + (version "2.15.28") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aws/aws-cli") + (commit version))) + (sha256 + (base32 + "0v9ndxih1i1s1ygp6c3p5krf7j2fxdy6fam36w7pijsk76wp0xdy")))) + (build-system gnu-build-system) + (arguments + ;; FIXME: The 'pypi' release does not contain tests. + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-reference-to-groff + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "awscli/help.py" + (("if not self._exists_on_path\\('groff'\\):") "") + (("raise ExecutableNotFoundError\\('groff'\\)") "") + (("cmdline = \\['groff'") + (string-append "cmdline = ['" + (search-input-file inputs "bin/groff") + "'")))))))) + (inputs + (list groff + python-wrapper + python-colorama-for-awscli + python-botocore + python-flit-core + python-importlib-resources + python-executor + python-s3transfer + python-docutils-0.15 + python-pyyaml + python-rsa)) + (home-page "https://aws.amazon.com/cli/") + (synopsis "Command line client for AWS") + (description "AWS CLI provides a unified command line interface to the +Amazon Web Services (AWS) API.") + (license license:asl2.0)))