Unverified Commit 98723f66 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

python3Packages.morecantile: fix build (#475130)

parents 0509a04d 30d751dc
Loading
Loading
Loading
Loading
+2 −23
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  flit,
  hatchling,

  # dependencies
  attrs,
@@ -32,7 +31,7 @@ buildPythonPackage rec {
    hash = "sha256-VDe39J4z5aSmdARaYknon4BK7OpovEzni0OVCxKRAkE=";
  };

  build-system = [ flit ];
  build-system = [ hatchling ];

  dependencies = [
    attrs
@@ -48,26 +47,6 @@ buildPythonPackage rec {
    versionCheckHook
  ];

  disabledTests = [
    # AssertionError CLI exists with non-zero error code
    # This is a regression introduced by https://github.com/NixOS/nixpkgs/pull/448189
    "test_cli_shapes"
    "test_cli_shapesWGS84"
    "test_cli_strict_overlap_contain"
    "test_cli_tiles_bad_bounds"
    "test_cli_tiles_geosjon"
    "test_cli_tiles_implicit_stdin"
    "test_cli_tiles_multi_bounds"
    "test_cli_tiles_multi_bounds_seq"
    "test_cli_tiles_ok"
    "test_cli_tiles_points"
    "test_cli_tiles_seq"
  ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    # https://github.com/developmentseed/morecantile/issues/156
    "test_tiles_when_tms_bounds_and_provided_bounds_cross_antimeridian"
  ];

  pythonImportsCheck = [ "morecantile" ];

  meta = {