about summary refs log tree commit diff
path: root/pkgs/development/python-modules/intelhex
diff options
context:
space:
mode:
authorPeter Jones <pjones@devalot.com>2017-06-14 14:27:20 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2017-06-23 10:54:48 +0200
commitaa3f37ceed582c8cb6e871db528b7216d17b474f (patch)
tree32eaf1c17c8c3d51565498d1019fc02a563c244c /pkgs/development/python-modules/intelhex
parent4f0d812abcbae2016967e9effb4e76a825b246d4 (diff)
pythonPackages.intelhex init at 2.1
Diffstat (limited to 'pkgs/development/python-modules/intelhex')
-rw-r--r--pkgs/development/python-modules/intelhex/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/intelhex/default.nix b/pkgs/development/python-modules/intelhex/default.nix
new file mode 100644
index 0000000000000..9d0a7d08c0cf1
--- /dev/null
+++ b/pkgs/development/python-modules/intelhex/default.nix
@@ -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 ];
+  };
+}