nur-packages

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

commit 66baf83ab998a4c658c85169cb99d4b747eef0ce
parent 994836a23b62f6b51369a4e272eaa8d33ff41b36
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Fri, 26 Aug 2022 15:29:06 +0300

Add prettymapp

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/prettymapp/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -390,6 +390,7 @@ lib.makeScope newScope ( phyghtmap = callPackage ./osm/phyghtmap { }; planetiler = callPackage ./osm/planetiler { }; polytiles = callPackage ./osm/polytiles { }; + prettymapp = callPackage ./osm/prettymapp { }; pyrobuf = callPackage ./osm/pyrobuf { }; pyrosm = callPackage ./osm/pyrosm { }; sdlmap = callPackage ./osm/sdlmap { }; diff --git a/pkgs/osm/prettymapp/default.nix b/pkgs/osm/prettymapp/default.nix @@ -0,0 +1,29 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "prettymapp"; + version = "2022-08-10"; + + src = fetchFromGitHub { + owner = "chrieke"; + repo = "prettymapp"; + rev = "053b215dafb6493b9efac5093e2e80bf65c5c5b2"; + hash = "sha256-/SlXbDv0tkSMSW878zqQ1zSEzt1BAcfK1Ny8kYiUfZs="; + }; + + propagatedBuildInputs = with python3Packages; [ osmnx ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + disabledTests = [ + "test_get_aoi_from_user_input_address" + "test_get_aoi_from_user_input_rectangle" + ]; + + meta = with lib; { + description = "Create beautiful maps from OpenStreetMap data in a webapp"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}