2017-09-05 09:42:53 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, click, pytest, glibcLocales
|
2017-09-03 11:02:28 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cligj";
|
2018-10-17 01:18:46 +02:00
|
|
|
version = "0.5.0";
|
2017-09-03 11:02:28 +02:00
|
|
|
|
2017-09-05 09:42:53 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = "cligj";
|
|
|
|
rev = version;
|
2018-10-17 01:18:46 +02:00
|
|
|
sha256 = "13vlibbn86dhh6iy8k831vsa249746jnk419wcr9vvr3pqxml6g2";
|
2017-09-03 11:02:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
2017-09-05 09:42:53 +02:00
|
|
|
checkInputs = [ pytest glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=en_US.utf-8 pytest tests
|
|
|
|
'';
|
|
|
|
|
2017-09-03 11:02:28 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Click params for commmand line interfaces to GeoJSON";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mapbox/cligj";
|
2017-09-03 11:02:28 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|