2020-06-27 10:42:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
|
|
|
, six
|
2022-08-20 07:47:26 +00:00
|
|
|
, pythonOlder
|
2020-06-27 10:42:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geomet";
|
2022-11-26 22:09:57 +00:00
|
|
|
version = "1.0.0";
|
2022-08-20 07:01:02 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-06-27 10:42:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "geomet";
|
|
|
|
repo = "geomet";
|
2022-08-19 22:59:52 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-11-26 22:09:57 +00:00
|
|
|
hash = "sha256-dN0d6wu5FqL/5FQrpQn+wlyEvp52pa5dkxLu3j3bxnw=";
|
2020-06-27 10:42:08 +00:00
|
|
|
};
|
|
|
|
|
2022-08-20 07:01:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"geomet"
|
|
|
|
];
|
2020-06-27 10:42:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-20 07:01:02 +00:00
|
|
|
description = "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) and vice versa";
|
2020-06-27 10:42:08 +00:00
|
|
|
homepage = "https://github.com/geomet/geomet";
|
2022-11-27 07:18:56 +00:00
|
|
|
changelog = "https://github.com/geomet/geomet/releases/tag/${version}";
|
2020-06-27 10:42:08 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ turion ris ];
|
|
|
|
};
|
|
|
|
}
|