From 55ab7a1f1721bd184f54f4318094c0c329dba873 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 30 Nov 2025 17:58:00 +0100 Subject: [PATCH] gnu: python-dpkt: Update to 1.9.8. * gnu/packages/python-web.scm (python-dpkt): Update to 1.9.8. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Add flags. [native-inputs]: Add python-pytest, python-pytest-cov, python-setuptools. [description]: Improve style. Change-Id: I0a4cc677523d0579590d37692818ecc420c8eeaf Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 81fef34d22fda6697692d207598bfd355d398a01..67292785fd9b777284898f50a36fc7133938a172 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -7493,19 +7493,27 @@ mainloop.") (define-public python-dpkt (package (name "python-dpkt") - (version "1.9.4") + (version "1.9.8") (source (origin - (method url-fetch) - (uri (pypi-uri "dpkt" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/kbandla/dpkt") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1d28r8pmhzjjd6hrn1xcddinfhwv8lcl1s59ygmqa8kfmz5pkrgl")))) - (build-system python-build-system) + (base32 "0dhy8l4sqfxqdda6lishb95g3v6hnw14l20ipqpzb6vaw1vf7mzj")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "--pyargs" "dpkt"))) + (native-inputs (list python-pytest python-pytest-cov python-setuptools)) (home-page "https://github.com/kbandla/dpkt") (synopsis "Packet generator and parser for TCP/IP protocols") - (description "The dpkt module is a fast, simple packet generator and parser -for the basic TCP/IP protocols.") + (description + "The dpkt module is a fast, simple packet generator and parser for the +basic TCP/IP protocols.") (license license:bsd-3))) (define-public python-geventhttpclient