nur-packages

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

commit 825156c699a35c57190386636db07782a114807a
parent 2211ff2d234a4fb9579c3f3790650127068679e9
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 22 May 2022 14:11:47 +0300

Add geojson-pydantic

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/geospatial/geojson-pydantic/default.nix | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -166,6 +166,7 @@ lib.makeScope newScope ( click = click-6-7; }; geographiclib = callPackage ./geospatial/geographiclib { }; + geojson-pydantic = callPackage ./geospatial/geojson-pydantic { }; go-pmtiles = callPackage ./geospatial/go-pmtiles { }; go-staticmaps = callPackage ./geospatial/go-staticmaps { }; mapsoft = callPackage ./geospatial/mapsoft { diff --git a/pkgs/geospatial/geojson-pydantic/default.nix b/pkgs/geospatial/geojson-pydantic/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "geojson-pydantic"; + version = "0.3.4"; + + src = fetchFromGitHub { + owner = "developmentseed"; + repo = pname; + rev = version; + hash = "sha256-WTsusDLTmZUAX5BpXHpKPe19nmort45Mx6D1wVYKaGw="; + }; + + propagatedBuildInputs = with python3Packages; [ + pydantic + ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "Pydantic data models for the GeoJSON spec"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}