1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 argparse-addons,
6 humanfriendly,
7 pyelftools,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "bincopy";
13 version = "20.1.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-2KToy4Ltr7vjZ0FTN9GSbH2MRVYX5DvUsUVlN3K5uWU=";
21 };
22
23 propagatedBuildInputs = [
24 argparse-addons
25 humanfriendly
26 pyelftools
27 ];
28
29 pythonImportsCheck = [ "bincopy" ];
30
31 meta = with lib; {
32 description = "Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX, TI-TXT, ELF and binary files)";
33 mainProgram = "bincopy";
34 homepage = "https://github.com/eerimoq/bincopy";
35 license = licenses.mit;
36 maintainers = with maintainers; [
37 frogamic
38 sbruder
39 ];
40 };
41}