Bug 277695

Summary: [NEW PORT] security/py-pykeepass: Python library to interact with keepass databases
Product: Ports & Packages Reporter: Jesús Daniel Colmenares Oviedo <DtxdF>
Component: Individual Port(s)Assignee: Robert Clausecker <fuz>
Status: Closed FIXED    
Severity: Affects Only Me CC: fuz
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://pypi.org/project/pykeepass
Bug Depends on:    
Bug Blocks: 277694, 277696    
Attachments:
Description Flags
security-py-pykeepass-New-port-Python-library-to-int.patch
DtxdF: maintainer-approval+
py-pykeepass-4.1.0.post1.patch none

Description Jesús Daniel Colmenares Oviedo 2024-03-14 14:38:15 UTC
Created attachment 249161 [details]
security-py-pykeepass-New-port-Python-library-to-int.patch

Description:

pykeepass is a python library to interact with keepass databases
(supports KDBX3 and KDBX4). You can perform many tasks such as
finding entries, groups, manipulate entries, group entries,
attachments, and much more. All in a single Python library.

WWW: https://pypi.org/project/pykeepass

QA:

* portlint: OK (looks fine.)
* testport: OK (synth: 14.0-RELEASE, amd64)
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2024-09-22 12:47:23 UTC
I'm sorry for the slow processing.

Could you please rebase this patch onto the current ports tree?
Unfortunately it doesn't apply as is.  The same probably also
applies to bug #277694 and bug #277696.
Comment 2 Jesús Daniel Colmenares Oviedo 2024-09-22 23:43:29 UTC
Created attachment 253762 [details]
py-pykeepass-4.1.0.post1.patch

Description:

* Update to 4.1.0.post1

ChangeLog: https://github.com/libkeepass/pykeepass/blob/v4.1.0.post1/CHANGELOG.rst

* add PyKeePass.database_name and database_description
* fix pkg_resources dependency issue
* Entry.tags returns empty list instead of None
* set 'encoding' attribute when exporting as XML
* parse datetimes using isoformat instead of strptime

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 14.1-RELEASE, amd64)
Comment 3 Jesús Daniel Colmenares Oviedo 2024-09-22 23:54:44 UTC
(In reply to Robert Clausecker from comment #1)

I have removed the entry from security/Makefile to avoid the same problem.
Comment 4 Robert Clausecker freebsd_committer freebsd_triage 2024-09-23 09:35:34 UTC
Applies just fine now!
Comment 5 commit-hook freebsd_committer freebsd_triage 2024-09-25 06:31:18 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f05e53436041f7b1a3b1c26fd00160d7d57d38d0

commit f05e53436041f7b1a3b1c26fd00160d7d57d38d0
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-09-22 23:24:47 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-25 06:29:18 +0000

    security/py-pykeepass: New port: Python library to interact with keepass databases

    pykeepass is a python library to interact with keepass databases
    (supports KDBX3 and KDBX4). You can perform many tasks such as
    finding entries, groups, manipulate entries, group entries,
    attachments, and much more. All in a single Python library.

    WWW: https://pypi.org/project/pykeepass

    PR:             277695
    Evenet:         EuroBSDcon 2024

 security/Makefile                     |  1 +
 security/py-pykeepass/Makefile (new)  | 28 ++++++++++++++++++++++++++++
 security/py-pykeepass/distinfo (new)  |  3 +++
 security/py-pykeepass/pkg-descr (new) |  4 ++++
 4 files changed, 36 insertions(+)
Comment 6 Robert Clausecker freebsd_committer freebsd_triage 2024-09-25 06:37:14 UTC
Thank you for your contribution.