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