pygame-sdl2: 2.1.0 -> 8.3.1.24090601; modernize derivation (#374642)
[NixPkgs.git] / pkgs / development / python-modules / geojson / default.nix
blob86680fc01f2e4a0aea43deafcdbd8a87522036b1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch2,
6   setuptools,
7   unittestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "geojson";
12   version = "3.1.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "jazzband";
17     repo = "geojson";
18     tag = version;
19     hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U=";
20   };
22   patches = [
23     (fetchpatch2 {
24       name = "dont-fail-with-python-313.patch";
25       url = "https://github.com/jazzband/geojson/commit/c13afff339e6b78f442785cc95f0eb66ddab3e7b.patch?full_index=1";
26       hash = "sha256-xdz96vzTA+zblJtCvXIZe5p51xJGM5eB/HAtCXgy5JA=";
27     })
28   ];
30   build-system = [ setuptools ];
32   pythonImportsCheck = [ "geojson" ];
34   nativeCheckInputs = [ unittestCheckHook ];
36   meta = {
37     homepage = "https://github.com/jazzband/geojson";
38     changelog = "https://github.com/jazzband/geojson/blob/${version}/CHANGELOG.rst";
39     description = "Python bindings and utilities for GeoJSON";
40     license = lib.licenses.bsd3;
41     maintainers = with lib.maintainers; [ oxzi ];
42   };