Loading pkgs/development/misc/h3/default.nix +15 −15 Original line number Diff line number Diff line Loading @@ -9,14 +9,14 @@ let generic = { version, hash }: stdenv.mkDerivation rec { stdenv.mkDerivation { inherit version; pname = "h3"; src = fetchFromGitHub { owner = "uber"; repo = "h3"; rev = "v${version}"; tag = "v${version}"; inherit hash; }; Loading @@ -28,23 +28,23 @@ let nativeBuildInputs = [ cmake ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_BENCHMARKS=OFF" "-DBUILD_FUZZERS=OFF" "-DBUILD_GENERATORS=OFF" "-DENABLE_COVERAGE=OFF" "-DENABLE_FORMAT=OFF" "-DENABLE_LINTING=OFF" (lib.cmakeBool "BUILD_SHARED_LIBS" true) (lib.cmakeBool "BUILD_BENCHMARKS" false) (lib.cmakeBool "BUILD_FUZZERS" false) (lib.cmakeBool "BUILD_GENERATORS" false) (lib.cmakeBool "ENABLE_COVERAGE" false) (lib.cmakeBool "ENABLE_FORMAT" false) (lib.cmakeBool "ENABLE_LINTING" false) (lib.cmakeBool "BUILD_FILTERS" withFilters) ]; meta = with lib; { meta = { homepage = "https://h3geo.org/"; description = "Hexagonal hierarchical geospatial indexing system"; license = licenses.asl20; license = lib.licenses.asl20; changelog = "https://github.com/uber/h3/raw/v${version}/CHANGELOG.md"; platforms = platforms.all; maintainers = with maintainers; [ kalbasit ]; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ kalbasit ]; }; }; in Loading @@ -55,7 +55,7 @@ in }; h3_4 = generic { version = "4.1.0"; hash = "sha256-7qyN73T8XDwZLgMZld7wwShUwoLEi/2gN2oiZX8n5nQ="; version = "4.2.0"; hash = "sha256-SzuxoYjsXCLhlAhQS7JoKvH8C3vquXttf58d4LnkeVM="; }; } pkgs/development/python-modules/h3/default.nix +20 −12 Original line number Diff line number Diff line Loading @@ -6,34 +6,40 @@ fetchFromGitHub, h3, lib, ninja, numpy, pytestCheckHook, scikit-build, pytest-cov-stub, scikit-build-core, stdenv, }: buildPythonPackage rec { pname = "h3"; version = "4.1.2"; format = "setuptools"; version = "4.2.1"; pyproject = true; # pypi version does not include tests src = fetchFromGitHub { owner = "uber"; repo = "h3-py"; tag = "v${version}"; hash = "sha256-dsF6VJwwIDapHtLiNEWbKW6A28zEOWqEPDRznf0eOcA="; hash = "sha256-YFGKF/WV0nlmtR7MacOBoor6PQwPPFqdK1C1eIciXwI="; }; dontConfigure = true; nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ]; nativeBuildInputs = build-system = [ scikit-build scikit-build-core cmake cython ninja ] ++ lib.optionals stdenv.hostPlatform.isLinux [ # On Linux the .so files ends up referring to libh3.so instead of the full Loading @@ -46,7 +52,7 @@ buildPythonPackage rec { # correctly. See the note above ^^ buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ h3 ]; propagatedBuildInputs = [ numpy ]; dependencies = [ numpy ]; # The following prePatch replaces the h3lib compilation with using the h3 packaged in nixpkgs. # Loading @@ -61,16 +67,18 @@ buildPythonPackage rec { in '' rm -r src/h3lib substituteInPlace CMakeLists.txt --replace "add_subdirectory(src/h3lib)" "${cmakeCommands}" substituteInPlace CMakeLists.txt \ --replace-fail "add_subdirectory(src/h3lib)" "${cmakeCommands}" \ --replace-fail "\''${CMAKE_CURRENT_BINARY_DIR}/src/h3lib/src/h3lib/include/h3api.h" "${lib.getDev h3}/include/h3/h3api.h" ''; # Extra check to make sure we can import it from Python pythonImportsCheck = [ "h3" ]; meta = with lib; { meta = { homepage = "https://github.com/uber/h3-py"; description = "Hierarchical hexagonal geospatial indexing system"; license = licenses.asl20; maintainers = [ maintainers.kalbasit ]; license = lib.licenses.asl20; maintainers = [ lib.maintainers.kalbasit ]; }; } pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -5791,7 +5791,7 @@ self: super: with self; { h2 = callPackage ../development/python-modules/h2 { }; h3 = callPackage ../development/python-modules/h3 { inherit (pkgs) h3; h3 = pkgs.h3_4; }; h5io = callPackage ../development/python-modules/h5io { }; Loading Loading
pkgs/development/misc/h3/default.nix +15 −15 Original line number Diff line number Diff line Loading @@ -9,14 +9,14 @@ let generic = { version, hash }: stdenv.mkDerivation rec { stdenv.mkDerivation { inherit version; pname = "h3"; src = fetchFromGitHub { owner = "uber"; repo = "h3"; rev = "v${version}"; tag = "v${version}"; inherit hash; }; Loading @@ -28,23 +28,23 @@ let nativeBuildInputs = [ cmake ]; cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DBUILD_BENCHMARKS=OFF" "-DBUILD_FUZZERS=OFF" "-DBUILD_GENERATORS=OFF" "-DENABLE_COVERAGE=OFF" "-DENABLE_FORMAT=OFF" "-DENABLE_LINTING=OFF" (lib.cmakeBool "BUILD_SHARED_LIBS" true) (lib.cmakeBool "BUILD_BENCHMARKS" false) (lib.cmakeBool "BUILD_FUZZERS" false) (lib.cmakeBool "BUILD_GENERATORS" false) (lib.cmakeBool "ENABLE_COVERAGE" false) (lib.cmakeBool "ENABLE_FORMAT" false) (lib.cmakeBool "ENABLE_LINTING" false) (lib.cmakeBool "BUILD_FILTERS" withFilters) ]; meta = with lib; { meta = { homepage = "https://h3geo.org/"; description = "Hexagonal hierarchical geospatial indexing system"; license = licenses.asl20; license = lib.licenses.asl20; changelog = "https://github.com/uber/h3/raw/v${version}/CHANGELOG.md"; platforms = platforms.all; maintainers = with maintainers; [ kalbasit ]; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ kalbasit ]; }; }; in Loading @@ -55,7 +55,7 @@ in }; h3_4 = generic { version = "4.1.0"; hash = "sha256-7qyN73T8XDwZLgMZld7wwShUwoLEi/2gN2oiZX8n5nQ="; version = "4.2.0"; hash = "sha256-SzuxoYjsXCLhlAhQS7JoKvH8C3vquXttf58d4LnkeVM="; }; }
pkgs/development/python-modules/h3/default.nix +20 −12 Original line number Diff line number Diff line Loading @@ -6,34 +6,40 @@ fetchFromGitHub, h3, lib, ninja, numpy, pytestCheckHook, scikit-build, pytest-cov-stub, scikit-build-core, stdenv, }: buildPythonPackage rec { pname = "h3"; version = "4.1.2"; format = "setuptools"; version = "4.2.1"; pyproject = true; # pypi version does not include tests src = fetchFromGitHub { owner = "uber"; repo = "h3-py"; tag = "v${version}"; hash = "sha256-dsF6VJwwIDapHtLiNEWbKW6A28zEOWqEPDRznf0eOcA="; hash = "sha256-YFGKF/WV0nlmtR7MacOBoor6PQwPPFqdK1C1eIciXwI="; }; dontConfigure = true; nativeCheckInputs = [ pytestCheckHook ]; nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ]; nativeBuildInputs = build-system = [ scikit-build scikit-build-core cmake cython ninja ] ++ lib.optionals stdenv.hostPlatform.isLinux [ # On Linux the .so files ends up referring to libh3.so instead of the full Loading @@ -46,7 +52,7 @@ buildPythonPackage rec { # correctly. See the note above ^^ buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ h3 ]; propagatedBuildInputs = [ numpy ]; dependencies = [ numpy ]; # The following prePatch replaces the h3lib compilation with using the h3 packaged in nixpkgs. # Loading @@ -61,16 +67,18 @@ buildPythonPackage rec { in '' rm -r src/h3lib substituteInPlace CMakeLists.txt --replace "add_subdirectory(src/h3lib)" "${cmakeCommands}" substituteInPlace CMakeLists.txt \ --replace-fail "add_subdirectory(src/h3lib)" "${cmakeCommands}" \ --replace-fail "\''${CMAKE_CURRENT_BINARY_DIR}/src/h3lib/src/h3lib/include/h3api.h" "${lib.getDev h3}/include/h3/h3api.h" ''; # Extra check to make sure we can import it from Python pythonImportsCheck = [ "h3" ]; meta = with lib; { meta = { homepage = "https://github.com/uber/h3-py"; description = "Hierarchical hexagonal geospatial indexing system"; license = licenses.asl20; maintainers = [ maintainers.kalbasit ]; license = lib.licenses.asl20; maintainers = [ lib.maintainers.kalbasit ]; }; }
pkgs/top-level/python-packages.nix +1 −1 Original line number Diff line number Diff line Loading @@ -5791,7 +5791,7 @@ self: super: with self; { h2 = callPackage ../development/python-modules/h2 { }; h3 = callPackage ../development/python-modules/h3 { inherit (pkgs) h3; h3 = pkgs.h3_4; }; h5io = callPackage ../development/python-modules/h5io { }; Loading