summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/bincopy/default.nix
blob: b73c88694a1c24cf894038bf8350891507ee05be (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
32
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  argparse-addons,
  humanfriendly,
  pyelftools,
}:

buildPythonPackage rec {
  pname = "bincopy";
  version = "20.1.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-2KToy4Ltr7vjZ0FTN9GSbH2MRVYX5DvUsUVlN3K5uWU=";
  };

  propagatedBuildInputs = [
    argparse-addons
    humanfriendly
    pyelftools
  ];

  pythonImportsCheck = [ "bincopy" ];

  meta = {
    description = "Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX, TI-TXT, ELF and binary files)";
    mainProgram = "bincopy";
    homepage = "https://github.com/eerimoq/bincopy";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      frogamic
      sbruder
    ];
  };
}