Skip to content

Commit

Permalink
pythonPackages.intelhex init at 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pjones authored and FRidh committed Jun 23, 2017
1 parent 4f0d812 commit aa3f37c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/intelhex/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
}:

buildPythonPackage rec {
pname = "intelhex";
version = "2.1";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0k5l1mn3gv1vb0jd24ygxksx8xqr57y1ivgyj37jsrwpzrp167kw";
};

patches = [
(fetchpatch {
url = https://github.com/bialix/intelhex/commit/f251aef214daa2116e15ff7f7dcec1639eb12d5b.patch;
sha256 = "02i15qjmcz7mwbwvyj3agl5y7098rag2iwypdilkaadhbslsl9b9";
})
];

meta = {
homepage = https://github.com/bialix/intelhex;
description = "Python library for Intel HEX files manipulations";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ pjones ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ in {
hdf5 = pkgs.hdf5-mpi;
};

intelhex = callPackage ../development/python-modules/intelhex { };

mpi4py = callPackage ../development/python-modules/mpi4py {
mpi = pkgs.openmpi;
};
Expand Down

0 comments on commit aa3f37c

Please sign in to comment.