1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5}:
6
7buildPythonPackage rec {
8 pname = "intelhex";
9 version = "2.2.1";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780";
14 };
15
16 patches = [
17 # patch the tests to check for the correct version string (2.2.1)
18 (fetchpatch {
19 url = "https://patch-diff.githubusercontent.com/raw/bialix/intelhex/pull/26.patch";
20 sha256 = "1f3f2cyf9ipb9zdifmjs8rqhg028dhy91vabxxn3l7br657s8r2l";
21 })
22 ];
23
24 meta = {
25 homepage = "https://github.com/bialix/intelhex";
26 description = "Python library for Intel HEX files manipulations";
27 license = lib.licenses.bsd3;
28 maintainers = with lib.maintainers; [ pjones ];
29 };
30}