at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch2, 6 setuptools, 7 unittestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "geojson"; 12 version = "3.1.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "jazzband"; 17 repo = "geojson"; 18 tag = version; 19 hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U="; 20 }; 21 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 ]; 29 30 build-system = [ setuptools ]; 31 32 pythonImportsCheck = [ "geojson" ]; 33 34 nativeCheckInputs = [ unittestCheckHook ]; 35 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 }; 43}