xin/pkgs/precursorupdater.nix

30 lines
655 B
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ lib
, buildPythonPackage
, fetchPypi
, pyusb
, progressbar2
, requests
, pycryptodome
, ...
2023-07-11 09:12:50 -06:00
}:
2022-12-02 15:01:05 -07:00
buildPythonPackage rec {
pname = "precursorupdater";
2024-06-28 14:10:01 -06:00
version = "0.1.5";
2022-12-02 15:01:05 -07:00
src = fetchPypi {
inherit pname version;
2024-06-28 14:10:01 -06:00
sha256 = "sha256-m2uqfwVH2ekmIPQAfS43CGXE20+v6W1tB9m8x2sYcK0=";
2022-12-02 15:01:05 -07:00
};
2023-09-12 08:44:05 -06:00
propagatedBuildInputs = [ pyusb progressbar2 requests pycryptodome ];
2022-12-02 15:01:05 -07:00
doCheck = false;
meta = with lib; {
2023-07-11 09:12:50 -06:00
homepage = "https://github.com/betrusted-io/betrusted-wiki/wiki/Updating-Your-Device";
2022-12-02 15:01:05 -07:00
description = "script to automatically updates a Precursor device";
license = licenses.asl20;
2023-09-12 08:44:05 -06:00
maintainers = with maintainers; [ qbit ];
2022-12-02 15:01:05 -07:00
};
}