biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / cp210x-program / default.nix
blob50c6daab1bfae811f46f09017552ab1cbb620d15
1 { lib
2 , python3
3 , fetchFromGitHub
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "cp210x-program";
8   version = "0.4.1";
10   src = fetchFromGitHub {
11     owner = "VCTLabs";
12     repo = "cp210x-program";
13     rev = "refs/tags/${version}";
14     sha256 = "sha256-IjKshP12WfFly9cPm6svD4qZW6cT8C7lOVrGenSqbfY=";
15   };
17   propagatedBuildInputs = with python3.pkgs; [
18     hexdump
19     pyusb
20   ];
22   postInstall = ''
23     ln -s $out/bin/cp210x-program{.py,}
24   '';
26   meta = with lib; {
27     description = "EEPROM tool for Silabs CP210x USB-Serial adapter";
28     homepage = "https://github.com/VCTLabs/cp210x-program";
29     license = licenses.lgpl21Only; # plus/only status unclear
30     maintainers = [ ];
31     mainProgram = "cp210x-program";
32   };