nur-packages

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

commit 1c4153f8e9ca10c9a3e69fdeb41579503312da85
parent c9cd774e873fc56e9db6314d0d6133f16e450758
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Wed,  4 Sep 2024 21:14:21 +0400

Add maproulette-python-client

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/maproulette-python-client/default.nix | 36++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -457,6 +457,7 @@ lib.makeScope newScope ( map-machine = callPackage ./osm/map-machine { }; map-stylizer = callPackage ./osm/map-stylizer { }; maperitive = callPackage ./osm/maperitive { }; + maproulette-python-client = callPackage ./osm/maproulette-python-client { }; memphis = callPackage ./osm/memphis { }; osm-3s = callPackage ./osm/osm-3s { }; osm-area-tools = callPackage ./osm/osm-area-tools { }; diff --git a/pkgs/osm/maproulette-python-client/default.nix b/pkgs/osm/maproulette-python-client/default.nix @@ -0,0 +1,36 @@ +{ + lib, + python3Packages, + fetchFromGitHub, +}: + +python3Packages.buildPythonPackage rec { + pname = "maproulette-python-client"; + version = "1.8.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "osmlab"; + repo = "maproulette-python-client"; + rev = "v${version}"; + hash = "sha256-EmYa2B1FO4PNE1pdoPXeKo8uoY7Tc1cRwkqxiD41WrQ="; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace-fail 'setup_requires=["pytest-runner"],' "" + ''; + + build-system = with python3Packages; [ setuptools ]; + + dependencies = with python3Packages; [ requests ]; + + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + + meta = { + description = "A Python API wrapper for MapRoulette"; + homepage = "https://github.com/osmlab/maproulette-python-client"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sikmir ]; + }; +}