summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cligj/default.nix
blob: cf91b206452c7fa4de8e63c9df2129e720ab8058 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  click,
  pytest,
}:

buildPythonPackage rec {
  pname = "cligj";
  version = "0.7.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mapbox";
    repo = "cligj";
    rev = version;
    hash = "sha256-0f9+I6ozX93Vn0l7+WR0mpddDZymJQ3+Krovt6co22Y=";
  };

  propagatedBuildInputs = [ click ];

  nativeCheckInputs = [
    pytest
  ];

  checkPhase = ''
    pytest tests
  '';

  meta = {
    description = "Click params for command line interfaces to GeoJSON";
    homepage = "https://github.com/mapbox/cligj";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}