1{ lib, buildPythonPackage, fetchFromGitHub
2, click, pytest, glibcLocales
3}:
4
5buildPythonPackage rec {
6 pname = "cligj";
7 version = "0.7.2";
8
9 src = fetchFromGitHub {
10 owner = "mapbox";
11 repo = "cligj";
12 rev = version;
13 sha256 = "sha256-0f9+I6ozX93Vn0l7+WR0mpddDZymJQ3+Krovt6co22Y=";
14 };
15
16 propagatedBuildInputs = [
17 click
18 ];
19
20 checkInputs = [ pytest glibcLocales ];
21
22 checkPhase = ''
23 LC_ALL=en_US.utf-8 pytest tests
24 '';
25
26 meta = with lib; {
27 description = "Click params for commmand line interfaces to GeoJSON";
28 homepage = "https://github.com/mapbox/cligj";
29 license = licenses.bsd3;
30 maintainers = with maintainers; [ knedlsepp ];
31 };
32}