nur-packages

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

commit 3820d92165445a6bb76d1a7dcc360851c236f647
parent e828e14fb6a8929ead489ee0d2e1532f73d9f440
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 22 May 2022 23:25:52 +0300

Add large-image[gdal]

Diffstat:
Mpkgs/default.nix | 2++
Apkgs/development/python-modules/large-image/default.nix | 28++++++++++++++++++++++++++++
Apkgs/development/python-modules/large-image/sources.nix | 15+++++++++++++++
3 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -84,6 +84,8 @@ lib.makeScope newScope ( geotiler = callPackage ./development/python-modules/geotiler { }; gpxelevations = callPackage ./development/python-modules/gpxelevations { }; jsonseq = callPackage ./development/python-modules/jsonseq { }; + large-image = callPackage ./development/python-modules/large-image { }; + large-image-source-gdal = (callPackage ./development/python-modules/large-image/sources.nix { }).source-gdal; lru-dict = callPackage ./development/python-modules/lru-dict { }; portolan = callPackage ./development/python-modules/portolan { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; diff --git a/pkgs/development/python-modules/large-image/default.nix b/pkgs/development/python-modules/large-image/default.nix @@ -0,0 +1,28 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "large-image"; + version = "1.14.3"; + + src = fetchFromGitHub { + owner = "girder"; + repo = "large_image"; + rev = "v${version}"; + hash = "sha256-8vixBAWwg2QzzWlhbXNAKk9rmla/LLZSdORRKm/IVBk="; + }; + + nativeBuildInputs = with python3Packages; [ setuptools-scm ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + propagatedBuildInputs = with python3Packages; [ cachetools palettable pillow psutil numpy ]; + + doCheck = false; + + meta = with lib; { + description = "Python modules to work with large multiresolution images"; + homepage = "http://girder.github.io/large_image/"; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + }; +} diff --git a/pkgs/development/python-modules/large-image/sources.nix b/pkgs/development/python-modules/large-image/sources.nix @@ -0,0 +1,15 @@ +{ lib, python3Packages, large-image, gdal }: + +{ + source-gdal = python3Packages.buildPythonPackage rec { + pname = "large-image-source-gdal"; + inherit (large-image) version src nativeBuildInputs meta; + sourceRoot = "${src.name}/sources/gdal"; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + propagatedBuildInputs = with python3Packages; [ gdal pyproj large-image ]; + + doCheck = false; + }; +}