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