[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/17: gnu: Add python-pykeepass.
From: |
guix-commits |
Subject: |
08/17: gnu: Add python-pykeepass. |
Date: |
Sun, 18 Oct 2020 18:16:49 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 68d425cda8be8356ab5e8aab54be0f19f08fedd0
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Mon Oct 12 00:38:49 2020 -0300
gnu: Add python-pykeepass.
* gnu/packages/python-crypto.scm (python-pykeepass): New variable.
Signed-off-by: Marius Bakke <marius@gnu.org>
---
gnu/packages/python-crypto.scm | 48 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index bad774a..7084c3a 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -61,6 +61,7 @@
#:use-module (gnu packages swig)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages xml)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (srfi srfi-1))
@@ -1060,6 +1061,53 @@ through the Engine interface.")
(propagated-inputs
`(("python2-typing" ,python2-typing))))))
+(define-public python-pykeepass
+ (package
+ (name "python-pykeepass")
+ (version "3.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ ;; Source tarball on PyPI doesn't include tests.
+ (uri (git-reference
+ (url "https://github.com/libkeepass/pykeepass")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1wxbfpy7467mlnfsvmh685fhfnq4fki9y7yc9cylp30r5n3hisaj"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'make-kdbx-writable
+ ;; Tests have to write to the .kdbx files in the test directory.
+ (lambda _
+ (with-directory-excursion "tests"
+ (for-each make-file-writable (find-files "."))
+ #t)))
+ (add-before 'build 'patch-requirements
+ (lambda _
+ ;; Update requirements from dependency==version
+ ;; to dependency>=version.
+ (substitute* "setup.py"
+ (("==") ">="))
+ #t)))))
+ (propagated-inputs
+ `(("python-argon2-cffi" ,python-argon2-cffi)
+ ("python-construct" ,python-construct)
+ ("python-dateutil" ,python-dateutil)
+ ("python-future" ,python-future)
+ ("python-lxml" ,python-lxml)
+ ("python-pycryptodome" ,python-pycryptodome)))
+ (home-page "https://github.com/libkeepass/pykeepass")
+ (synopsis "Python library to interact with keepass databases")
+ (description
+ "This library allows you to write entries to a KeePass database. It
+supports KDBX3 and KDBX4.")
+ ;; There are no copyright headers in the source code. The LICENSE file
+ ;; indicates GPL3.
+ (license license:gpl3+)))
+
(define-public python-pylibscrypt
(package
(name "python-pylibscrypt")
- 03/17: gnu: LLVM, Clang: Add 11.0.0., (continued)
- 03/17: gnu: LLVM, Clang: Add 11.0.0., guix-commits, 2020/10/18
- 04/17: gnu: lld: Update to 11.0.0., guix-commits, 2020/10/18
- 12/17: gnu: Add python-pyotp., guix-commits, 2020/10/18
- 10/17: gnu: Add passwordsafe., guix-commits, 2020/10/18
- 14/17: gnu: Add python-pyzbar., guix-commits, 2020/10/18
- 15/17: gnu: Add authenticator., guix-commits, 2020/10/18
- 13/17: gnu: Add yoyo-migrations., guix-commits, 2020/10/18
- 17/17: gnu: Add libebur128., guix-commits, 2020/10/18
- 02/17: gnu: llvm.scm: Reorder variables., guix-commits, 2020/10/18
- 07/17: gnu: Add python-grandalf., guix-commits, 2020/10/18
- 08/17: gnu: Add python-pykeepass.,
guix-commits <=
- 16/17: gnu: Add ccal., guix-commits, 2020/10/18
- 11/17: gnu: Add python-pyfavicon., guix-commits, 2020/10/18
- 09/17: gnu: libpwquality: Enable Python binding., guix-commits, 2020/10/18