blob: 2c04045558c50393f466b2acb7ff6bfe18a9f326 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
fetchpatch,
buildPythonPackage,
fetchFromGitHub,
setuptools,
unittestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "geojson";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jazzband";
repo = "geojson";
tag = finalAttrs.version;
hash = "sha256-0p8FW9alcWCSdi66wanS/F9IgO714WIRQIXvg3f9op8=";
};
patches = [
(fetchpatch {
name = "allow-install-python314";
url = "https://github.com/jazzband/geojson/commit/2584c0de5651bd694499449f9da5321b15597270.patch";
hash = "sha256-64LPEwC1qc83wF48878fH31CVFn2txTmSxxr0cnQbRg=";
})
];
build-system = [ setuptools ];
pythonImportsCheck = [ "geojson" ];
nativeCheckInputs = [ unittestCheckHook ];
meta = {
homepage = "https://github.com/jazzband/geojson";
changelog = "https://github.com/jazzband/geojson/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
description = "Python bindings and utilities for GeoJSON";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ oxzi ];
teams = [ lib.teams.geospatial ];
};
})
|