about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/geojson/default.nix
blob: 28e05315861da6b61b5c807d7684105384125cf6 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, unittestCheckHook
 }:

buildPythonPackage rec {
  pname = "geojson";
  version = "3.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jazzband";
    repo = "geojson";
    rev = "refs/tags/${version}";
    hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  pythonImportsCheck = [
    "geojson"
  ];

  nativeCheckInputs = [
    unittestCheckHook
  ];

  meta = {
    homepage = "https://github.com/jazzband/geojson";
    changelog = "https://github.com/jazzband/geojson/blob/${version}/CHANGELOG.rst";
    description = "Python bindings and utilities for GeoJSON";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ oxzi ];
  };
}