diff --git a/nix/sources.json b/nix/sources.json
index 96d1db9efa33de148bc26530f5008c61b752c4d1..5577deb17838e4c139ddf4e65385e569118c07bf 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -569,6 +569,20 @@ "type": "tarball",
"url": "https://github.com/OpenOrienteering/mapper/archive/d17d1e46232f1e481be86bc5d9b6ecebcd4fd81b.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"branch": "master",
"builtin": false,
"date": "2019-10-24T18:36:24Z",
"description": null,
"homepage": "https://github.com/wladich/maprec",
"owner": "wladich",
"repo": "maprec",
"rev": "20f5177cae7454455b21cd5f7178f5639c02d385",
"sha256": "1zy49sbpxjg5dvkvxxxy2fh1vq26q0cnjdszb5zpwnxqmk7c4lpj",
"type": "tarball",
"url": "https://github.com/wladich/maprec/archive/20f5177cae7454455b21cd5f7178f5639c02d385.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"mapsoft": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/default.nix b/pkgs/default.nix
index db8a8e543403a486082eaf9000130616e9aefc68..9a08c5fa4e00d692c89e0d29baff275a835863fb 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -120,6 +120,7 @@ cheetah3 = callPackage ./development/python-modules/cheetah3 { };
click-6-7 = callPackage ./development/python-modules/click { };
gpxelevations = callPackage ./development/python-modules/gpxelevations { };
jsonseq = callPackage ./development/python-modules/jsonseq { };
mercantile = callPackage ./development/python-modules/mercantile { };
mikatools = callPackage ./development/python-modules/mikatools { };
pyephem = callPackage ./development/python-modules/pyephem { };
diff --git a/pkgs/development/python-modules/maprec/default.nix b/pkgs/development/python-modules/maprec/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..13a67c5f0c39e13ced027c0f4927d6fc6c68a2d2
--- /dev/null
+++ b/pkgs/development/python-modules/maprec/default.nix
@@ -0,0 +1,25 @@
+{ lib, python3Packages, thinplatespline, sources }:
+python3Packages.buildPythonPackage {
+}
diff --git a/pkgs/development/python-modules/maprec/python3.patch b/pkgs/development/python-modules/maprec/python3.patch
new file mode 100644
index 0000000000000000000000000000000000000000..a9e37e0fc742ae8c889ed31dba9eaea7312eb385
--- /dev/null
+++ b/pkgs/development/python-modules/maprec/python3.patch
@@ -0,0 +1,13 @@
+diff --git i/maprec/map_record.py w/maprec/map_record.py
+index 2a58b0f..d1ce585 100644
+--- i/maprec/map_record.py
++++ w/maprec/map_record.py
+@@ -161,7 +161,7 @@ class Maprecord(object):
data['image_size'] = os.path.getsize(self.image_path)
data['image_mtime'] = os.path.getmtime(self.image_path)
data = json.dumps(data)
+- self._fingerprint = hashlib.sha1(data).hexdigest()
++ self._fingerprint = hashlib.sha1(str(data).encode('utf-8')).hexdigest()
return self._fingerprint
application/octet-stream
This content has been proxied by September (3851b).