summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/esptool/default.nix
blob: 4e0d29e194f63f0d3d6449f741e9d2c69c700687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ pkgs, fetchFromGitHub, ... }:
with pkgs.python2Packages;
let
  pyaes = buildPythonPackage rec {
      name = "pyaes-${version}";
      version = "1.6.0";
      src = fetchFromGitHub {
        owner = "ricmoo";
        repo = "pyaes";
        rev = "v${version}";
        sha256 = "04934a9zgwc8g3qhfrkcfv0bs557paigllnkrnfhp9m1azr3bfqb";
      };
      doCheck = false;
  };
in
  buildPythonPackage rec {
    name = "${pname}-${version}";
    pname = "esptool";
    version = "2.1";
    propagatedBuildInputs = [
      pyserial
      flake8
      ecdsa
      pyaes
    ];
    src = fetchPypi {
      inherit pname version;
      sha256 = "08g393fiqhanixzjbs54pqr6xk1a4dsfaddw7gdwfvp3kvwdn2fp";
    };
    doCheck = false;
  }