summary refs log tree commit diff
path: root/pkgs/development/python-modules/cligj/default.nix
blob: 91b289e2ede723ba3a748811878b113bb2e02432 (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
{ stdenv, buildPythonPackage, fetchFromGitHub
, click, pytest, glibcLocales
}:

buildPythonPackage rec {
  pname = "cligj";
  version = "0.4.0";
  name = "${pname}-${version}";

  src = fetchFromGitHub {
    owner = "mapbox";
    repo = "cligj";
    rev = version;
    sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
  };

  propagatedBuildInputs = [
    click
  ];

  checkInputs = [ pytest glibcLocales ];

  checkPhase = ''
    LC_ALL=en_US.utf-8 pytest tests
  '';

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