depot/third_party/nixpkgs/pkgs/development/python-modules/pyfwup/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
837 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyusb,
tqdm,
libusb1,
setuptools,
setuptools-git-versioning,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyfwup";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "greatscottgadgets";
repo = "pyfwup";
rev = "refs/tags/${version}";
hash = "sha256-HZaR7X19kWb8w/VcnRHReGPkUBQ/u89BjmkTPpayoxE=";
};
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 ];
};
}