2017-09-05 08:42:53 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, click, pytest, glibcLocales
|
2017-09-03 10:02:28 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cligj";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
2017-09-05 08:42:53 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mapbox";
|
|
|
|
repo = "cligj";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
|
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
|
|
|
|
'';
|
|
|
|
|
2017-09-03 10:02:28 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Click params for commmand line interfaces to GeoJSON";
|
|
|
|
homepage = https://github.com/mapbox/cligj;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
|
|
|
};
|
|
|
|
}
|