github-backup: 0.48.0 -> 0.49.0 (#379003)
[NixPkgs.git] / pkgs / by-name / ti / tinyprog / package.nix
blob2e2c0776a80ebbe67634d0d0cc71663ce58b3249
2   lib,
3   python3Packages,
4   fetchFromGitHub,
5 }:
7 with python3Packages;
8 buildPythonApplication rec {
9   pname = "tinyprog";
10   # `python setup.py --version` from repo checkout
11   version = "1.0.24.dev114+g${lib.substring 0 7 src.rev}";
13   src = fetchFromGitHub {
14     owner = "tinyfpga";
15     repo = "TinyFPGA-Bootloader";
16     rev = "97f6353540bf7c0d27f5612f202b48f41da75299";
17     sha256 = "0zbrvvb957z2lwbfd39ixqdsnd2w4wfjirwkqdrqm27bjz308731";
18   };
20   sourceRoot = "${src.name}/programmer";
22   propagatedBuildInputs = [
23     pyserial
24     jsonmerge
25     intelhex
26     tqdm
27     six
28     packaging
29     setuptools
30     pyusb
31   ];
33   nativeBuildInputs = [ setuptools-scm ];
35   meta = with lib; {
36     homepage = "https://github.com/tinyfpga/TinyFPGA-Bootloader/tree/master/programmer";
37     description = "Programmer for FPGA boards using the TinyFPGA USB Bootloader";
38     mainProgram = "tinyprog";
39     maintainers = [ ];
40     license = licenses.asl20;
41   };