1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "geojson";
11 version = "3.1.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "jazzband";
16 repo = "geojson";
17 rev = "refs/tags/${version}";
18 hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 pythonImportsCheck = [ "geojson" ];
24
25 nativeCheckInputs = [ unittestCheckHook ];
26
27 meta = {
28 homepage = "https://github.com/jazzband/geojson";
29 changelog = "https://github.com/jazzband/geojson/blob/${version}/CHANGELOG.rst";
30 description = "Python bindings and utilities for GeoJSON";
31 license = lib.licenses.bsd3;
32 maintainers = with lib.maintainers; [ oxzi ];
33 };
34}