1{ stdenv, buildPythonPackage, fetchFromGitHub
2, click, pytest, glibcLocales
3}:
4
5buildPythonPackage rec {
6 pname = "cligj";
7 version = "0.4.0";
8
9 src = fetchFromGitHub {
10 owner = "mapbox";
11 repo = "cligj";
12 rev = version;
13 sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
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 stdenv.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}