nur-packages

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

commit 53b9e01899b6f70379c47e397518649b6512ee02
parent d1c4a3a8e0353caed53139bd1b87aae4648d5939
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 22 Dec 2020 23:16:38 +0300

Add py-staticmaps

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/geo/py-staticmaps/default.nix | 19+++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -843,6 +843,20 @@ "url": "https://github.com/wladich/ozi_map/archive/4d6bd3f234960ba90d82e6d58da9c1bf4677eb16.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "py-staticmaps": { + "branch": "master", + "builtin": false, + "date": "2020-11-28T13:45:19Z", + "description": "A python module to create static map images with markers, geodesic lines, etc.", + "homepage": "https://github.com/flopp/py-staticmaps", + "owner": "flopp", + "repo": "py-staticmaps", + "rev": "cbe706fd266137cdf8a412f6ca54c02e4bc89fa6", + "sha256": "0ff5wnrw7pfs80092r2iddacb3vi9a64s7j9im177897s55204fq", + "type": "tarball", + "url": "https://github.com/flopp/py-staticmaps/archive/cbe706fd266137cdf8a412f6ca54c02e4bc89fa6.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 @@ -187,6 +187,7 @@ lib.makeScope newScope ( inherit sources; inherit (perlPackages) GeoOpenstreetmapParser MatchSimple MathPolygon MathPolygonTree TreeR; }; + py-staticmaps = callPackage ./tools/geo/py-staticmaps { }; phyghtmap = callPackage ./tools/geo/phyghtmap { }; ptunnel = callPackage ./tools/networking/ptunnel { }; sendmap20 = callPackage ./tools/geo/sendmap20 { }; diff --git a/pkgs/tools/geo/py-staticmaps/default.nix b/pkgs/tools/geo/py-staticmaps/default.nix @@ -0,0 +1,19 @@ +{ lib, python3Packages, s2sphere, sources }: + +python3Packages.buildPythonApplication { + pname = "py-staticmaps-unstable"; + version = lib.substring 0 10 sources.py-staticmaps.date; + + src = sources.py-staticmaps; + + propagatedBuildInputs = with python3Packages; [ appdirs geographiclib pillow pycairo python-slugify requests s2sphere svgwrite ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + inherit (sources.py-staticmaps) description homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}