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