nur-packages

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

commit 9def39269b37785bf8273eba0c579e13f2c6bb03
parent 215c063f3d172e88ae24d32ba7c2acb3e38187a7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 30 Sep 2023 00:33:39 +0400

Add overpassforge

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -457,6 +457,7 @@ lib.makeScope newScope ( osmium-surplus = callPackage ./osm/osmium-surplus { }; osmosis = callPackage ./osm/osmosis { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; + overpassforge = callPackage ./osm/overpassforge { }; phyghtmap = callPackage ./osm/phyghtmap { }; planetiler = callPackage ./osm/planetiler { }; polytiles = callPackage ./osm/polytiles { }; diff --git a/pkgs/osm/overpassforge/default.nix b/pkgs/osm/overpassforge/default.nix @@ -0,0 +1,29 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "overpassforge"; + version = "0.4.3"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Krafpy"; + repo = "Overpass-Forge"; + rev = version; + hash = "sha256-HtP1aSIf6iOyZDhDF/kDps1hMgKHKOAlPjYwOQSeXjE="; + }; + + nativeBuildInputs = with python3Packages; [ setuptools-scm ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + + pythonImportsCheck = [ "overpassforge" ]; + + meta = with lib; { + description = "A library for generating OpenStreetMap's Overpass QL queries from Python objects"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}