xin/pkgs/precursorupdater.nix

30 lines
655 B
Nix
Raw 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";
2023-02-10 12:43:19 -07:00
version = "0.1.1";
2022-12-02 15:01:05 -07:00
src = fetchPypi {
inherit pname version;
2023-02-10 12:43:19 -07:00
sha256 = "sha256-YWPWGQLFbHjhYbdhLvbWndsNPfWEPSD7rfN6pJdnZFs=";
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
};
}