Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 43 lines 1.0 kB view raw
1{ lib 2, python3Packages 3, fetchFromGitHub 4}: 5 6with python3Packages; buildPythonApplication rec { 7 pname = "tinyprog"; 8 # `python setup.py --version` from repo checkout 9 version = "1.0.24.dev114+g${lib.substring 0 7 src.rev}"; 10 11 src = fetchFromGitHub { 12 owner = "tinyfpga"; 13 repo = "TinyFPGA-Bootloader"; 14 rev = "97f6353540bf7c0d27f5612f202b48f41da75299"; 15 sha256 = "0zbrvvb957z2lwbfd39ixqdsnd2w4wfjirwkqdrqm27bjz308731"; 16 }; 17 18 sourceRoot = "source/programmer"; 19 20 propagatedBuildInputs = [ 21 pyserial 22 jsonmerge 23 intelhex 24 tqdm 25 six 26 packaging 27 setuptools 28 pyusb 29 ]; 30 31 nativeBuildInputs = [ setuptools_scm ]; 32 33 preBuild = '' 34 export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" 35 ''; 36 37 meta = with lib; { 38 homepage = "https://github.com/tinyfpga/TinyFPGA-Bootloader/tree/master/programmer"; 39 description = "Programmer for FPGA boards using the TinyFPGA USB Bootloader"; 40 maintainers = with maintainers; [ emily ]; 41 license = licenses.asl20; 42 }; 43}