Merge pull request #329342 from msanft/pyfwup/init

pythonPackages.pyfwup: init at 0.4.0
This commit is contained in:
Weijia Wang 2024-07-23 17:11:15 +02:00 committed by GitHub
commit 48aa6e4cc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyusb,
tqdm,
libusb1,
setuptools,
setuptools-git-versioning,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyfwup";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "pyfwup";
rev = "refs/tags/${version}";
hash = "sha256-JSaAEGobdLqpSj9yvKrAsXfdkHpXSCcuGYRxz2QJqck=";
};
dependencies = [
pyusb
tqdm
libusb1
];
build-system = [
setuptools
setuptools-git-versioning
];
pythonImportsCheck = [
"fwup"
"fwup_utils"
];
meta = {
description = "Python FirmWare UPgrader";
homepage = "https://github.com/greatscottgadgets/pyfwup";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.msanft ];
};
}

View File

@ -11300,6 +11300,10 @@ self: super: with self; {
pyfuse3 = callPackage ../development/python-modules/pyfuse3 { };
pyfwup = callPackage ../development/python-modules/pyfwup {
inherit (pkgs) libusb1;
};
pyfxa = callPackage ../development/python-modules/pyfxa { };
pyfzf = callPackage ../development/python-modules/pyfzf {