xin/pkgs/precursorupdater.nix

23 lines
654 B
Nix
Raw Normal View History

2023-02-10 12:43:19 -07:00
{ lib, buildPythonPackage, fetchPypi, pyusb, progressbar2, requests, pycryptodome, ... }:
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-02-10 12:43:19 -07:00
propagatedBuildInputs = [ pyusb progressbar2 requests pycryptodome ];
2022-12-02 15:01:05 -07:00
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 ];
};
}