python312Packages.shiv: 1.0.7 -> 1.0.8 (#364744)
[NixPkgs.git] / pkgs / by-name / to / tockloader / package.nix
blob6fcdded82dc5c8db11bdb01bbad3f3ba83eae830
2   lib,
3   python3,
4   fetchPypi,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "tockloader";
9   version = "1.9.0";
11   src = fetchPypi {
12     inherit pname version;
13     hash = "sha256-7W55jugVtamFUL8N3dD1LFLJP2UDQb74V6o96rd/tEg=";
14   };
16   propagatedBuildInputs = with python3.pkgs; [
17     argcomplete
18     colorama
19     crcmod
20     pycryptodome
21     pyserial
22     questionary
23     toml
24     tqdm
25   ];
27   # Project has no test suite
28   checkPhase = ''
29     runHook preCheck
30     $out/bin/tockloader --version | grep -q ${version}
31     runHook postCheck
32   '';
34   meta = with lib; {
35     description = "Tool for programming Tock onto hardware boards";
36     mainProgram = "tockloader";
37     homepage = "https://github.com/tock/tockloader";
38     changelog = "https://github.com/tock/tockloader/releases/tag/v${version}";
39     license = licenses.mit;
40     maintainers = [ ];
41   };