nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.0 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5}: 6 7with python3Packages; 8buildPythonApplication 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}"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "tinyfpga"; 16 repo = "TinyFPGA-Bootloader"; 17 rev = "97f6353540bf7c0d27f5612f202b48f41da75299"; 18 sha256 = "0zbrvvb957z2lwbfd39ixqdsnd2w4wfjirwkqdrqm27bjz308731"; 19 }; 20 21 sourceRoot = "${src.name}/programmer"; 22 23 build-system = with python3Packages; [ 24 setuptools 25 setuptools-scm 26 ]; 27 28 dependencies = [ 29 pyserial 30 jsonmerge 31 intelhex 32 tqdm 33 six 34 packaging 35 setuptools # pkg_resources is imported during runtime 36 pyusb 37 ]; 38 39 meta = { 40 homepage = "https://github.com/tinyfpga/TinyFPGA-Bootloader/tree/master/programmer"; 41 description = "Programmer for FPGA boards using the TinyFPGA USB Bootloader"; 42 mainProgram = "tinyprog"; 43 maintainers = [ ]; 44 license = lib.licenses.asl20; 45 }; 46}