commit 98de05f0a87dcd63668881cf84e95e7a8bb8a982
parent a44b2870bbf4442214b021378ed9122cb2f5c392
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 8 Sep 2024 12:23:22 +0400
Add py-osm-static-maps
Diffstat:
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -476,6 +476,7 @@ lib.makeScope newScope (
planetiler = callPackage ./osm/planetiler { };
polytiles = callPackage ./osm/polytiles { };
prettymapp = callPackage ./osm/prettymapp { };
+ py-osm-static-maps = callPackage ./osm/py-osm-static-maps { };
pyrobuf = callPackage ./osm/pyrobuf { };
pyrosm = callPackage ./osm/pyrosm { };
sdlmap = callPackage ./osm/sdlmap { };
diff --git a/pkgs/osm/py-osm-static-maps/default.nix b/pkgs/osm/py-osm-static-maps/default.nix
@@ -0,0 +1,33 @@
+{
+ lib,
+ python3Packages,
+ fetchFromGitHub,
+}:
+
+python3Packages.buildPythonApplication {
+ pname = "py-osm-static-maps";
+ version = "0-unstable-2023-09-23";
+
+ src = fetchFromGitHub {
+ owner = "NHellFire";
+ repo = "py-osm-static-maps";
+ rev = "8c78104781467adf3432dd2b3a659f47b6bc8c2e";
+ hash = "sha256-6/Sd1owLiEUGY7hcmGQKJnL5RRhCsRjdAWK2HV4TXVg=";
+ };
+
+ dependencies = with python3Packages; [
+ flask
+ pillow
+ requests
+ selenium
+ setuptools
+ ];
+
+ meta = {
+ description = "Python rewrite of jperelli/osm-static-maps";
+ homepage = "https://github.com/NHellFire/py-osm-static-maps";
+ license = lib.licenses.gpl2;
+ maintainers = [ lib.maintainers.sikmir ];
+ mainProgram = "osmsm";
+ };
+}