From a613abeb43b1c81d2d0e647dc2b3c7f8cc98b8cb Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Mon, 8 Feb 2021 20:14:00 +0100 Subject: gnu: Add python-psptool. * gnu/packages/embedded.scm (python-psptool): New variable. --- gnu/packages/embedded.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 622905f0ce..16e9e6be76 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018, 2019 Clément Lassieur ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Björn Höfling +;;; Copyright © 2021 Julien Lepiller ;;; ;;; This file is part of GNU Guix. ;;; @@ -54,6 +55,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-xyz) #:use-module (gnu packages swig) #:use-module (gnu packages texinfo) @@ -1520,3 +1522,28 @@ families, plus many of their variants.") license:lgpl3+ license:public-domain license:zlib)))) + +(define-public python-psptool + (package + (name "python-psptool") + (version "2.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "psptool" version)) + (sha256 + (base32 + "1kx0xpfx67m4zclk4gs97wiwjms8i7z4f6b6m68y8sfgpshy4rf3")) + (modules '((guix build utils))) + (snippet + '(begin + ;; IPython is not used by the package at all + (substitute* '("psptool/directory.py" "psptool/entry.py") + (("from IPython.*") "")))))) + (build-system python-build-system) + (propagated-inputs + `(("python-cryptography" ,python-cryptography) + ("python-prettytable" ,python-prettytable))) + (home-page "https://github.com/PSPReverse/psptool") + (synopsis "Tool for dealing with AMD binary blobs") + (description "PSPTool is a tool for dealing with AMD binary blobs") + (license license:gpl3+))) -- cgit v1.2.3