2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2017-09-05 08:42:53 +01:00
|
|
|
, click, pytest, glibcLocales
|
2017-09-03 10:02:28 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cligj";
|
2021-06-19 00:50:49 +01:00
|
|
|
version = "0.7.2";
|
2017-09-03 10:02:28 +01:00
|
|
|
|
2017-09-05 08:42:53 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = "cligj";
|
|
|
|
rev = version;
|
2021-06-19 00:50:49 +01:00
|
|
|
sha256 = "sha256-0f9+I6ozX93Vn0l7+WR0mpddDZymJQ3+Krovt6co22Y=";
|
2017-09-03 10:02:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
2017-09-05 08:42:53 +01:00
|
|
|
checkInputs = [ pytest glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
LC_ALL=en_US.utf-8 pytest tests
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-09-03 10:02:28 +01:00
|
|
|
description = "Click params for commmand line interfaces to GeoJSON";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mapbox/cligj";
|
2017-09-03 10:02:28 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|