nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 6a2100d4d06fa05bbf86e7797b31dbdf63c29beb
parent 841e3880e534b2d0f468818430ec7336ebd3b1d7
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sun, 22 Nov 2020 19:21:58 +0300

Add ozi_map

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/development/python-modules/ozi_map/default.nix | 23+++++++++++++++++++++++
3 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -758,6 +758,20 @@ "url": "https://github.com/liosha/osm2mp/archive/748f93792ead174ad0e94a183a173ef3fcacf200.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "ozi-map": { + "branch": "master", + "builtin": false, + "date": "2019-10-24T18:44:05Z", + "description": "python module for reading OziExplorer .map files", + "homepage": "https://github.com/wladich/ozi_map", + "owner": "wladich", + "repo": "ozi_map", + "rev": "4d6bd3f234960ba90d82e6d58da9c1bf4677eb16", + "sha256": "1ap6r38n5dvvi6n8s0fps9afs7sa5rgdwsjk4fdzj44rs65hmc5i", + "type": "tarball", + "url": "https://github.com/wladich/ozi_map/archive/4d6bd3f234960ba90d82e6d58da9c1bf4677eb16.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "pyephem": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -123,6 +123,7 @@ lib.makeScope newScope ( maprec = callPackage ./development/python-modules/maprec { }; mercantile = callPackage ./development/python-modules/mercantile { }; mikatools = callPackage ./development/python-modules/mikatools { }; + ozi_map = callPackage ./development/python-modules/ozi_map { }; pyephem = callPackage ./development/python-modules/pyephem { }; pyimagequant = callPackage ./development/python-modules/pyimagequant { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; diff --git a/pkgs/development/python-modules/ozi_map/default.nix b/pkgs/development/python-modules/ozi_map/default.nix @@ -0,0 +1,23 @@ +{ lib, python3Packages, maprec, sources }: + +python3Packages.buildPythonPackage { + pname = "ozi_map"; + version = lib.substring 0 10 sources.ozi-map.date; + + src = sources.ozi-map; + + postPatch = "2to3 -n -w ozi_map/*.py"; + + propagatedBuildInputs = with python3Packages; [ maprec pyproj ]; + + doCheck = false; + + pythonImportsCheck = [ "ozi_map" ]; + + meta = with lib; { + inherit (sources.ozi-map) description homepage; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}