2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
|
|
|
, six
|
2022-08-21 13:32:41 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geomet";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.3.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geomet";
|
|
|
|
repo = "geomet";
|
2022-08-21 13:32:41 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-7QfvGQlg4nTr1rwTyvTNm6n/jFptLtpBKMjjQj6OXCQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"geomet"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) and vice versa";
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://github.com/geomet/geomet";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ turion ris ];
|
|
|
|
};
|
|
|
|
}
|