3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/intelhex/default.nix

31 lines
749 B
Nix
Raw Normal View History

2017-06-14 22:27:20 +01:00
{ lib
, buildPythonPackage
, fetchPypi
2019-05-19 11:10:51 +01:00
, fetchpatch
2017-06-14 22:27:20 +01:00
}:
buildPythonPackage rec {
pname = "intelhex";
2019-05-19 11:10:51 +01:00
version = "2.2.1";
2017-06-14 22:27:20 +01:00
src = fetchPypi {
inherit pname version;
2019-05-19 11:10:51 +01:00
sha256 = "0ckqjbxd8gwcg98gfzpn4vq1qxzfvq3rdbrr1hikj1nmw08qb780";
2017-06-14 22:27:20 +01:00
};
patches = [
2019-05-19 11:10:51 +01:00
# patch the tests to check for the correct version string (2.2.1)
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/bialix/intelhex/pull/26.patch";
sha256 = "1f3f2cyf9ipb9zdifmjs8rqhg028dhy91vabxxn3l7br657s8r2l";
2017-06-14 22:27:20 +01:00
})
];
meta = {
homepage = "https://github.com/bialix/intelhex";
2017-06-14 22:27:20 +01:00
description = "Python library for Intel HEX files manipulations";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ pjones ];
};
}