mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Merge pull request #329342 from msanft/pyfwup/init
pythonPackages.pyfwup: init at 0.4.0
This commit is contained in:
commit
48aa6e4cc4
50
pkgs/development/python-modules/pyfwup/default.nix
Normal file
50
pkgs/development/python-modules/pyfwup/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user