30 lines
655 B
Nix
30 lines
655 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyusb
|
|
, progressbar2
|
|
, requests
|
|
, pycryptodome
|
|
, ...
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "precursorupdater";
|
|
version = "0.1.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-m2uqfwVH2ekmIPQAfS43CGXE20+v6W1tB9m8x2sYcK0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyusb progressbar2 requests pycryptodome ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/betrusted-io/betrusted-wiki/wiki/Updating-Your-Device";
|
|
description = "script to automatically updates a Precursor device";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ qbit ];
|
|
};
|
|
}
|