depot/third_party/nixpkgs/pkgs/development/python-modules/geomet/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
896 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
click,
setuptools,
six,
pythonOlder,
}:
buildPythonPackage rec {
pname = "geomet";
version = "1.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "geomet";
repo = "geomet";
rev = "refs/tags/${version}";
hash = "sha256-YfI29925nffzRBMJb6Gm3muvlpwP3zSw2YJ2vWcf+Bo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
click
six
];
pythonImportsCheck = [ "geomet" ];
meta = with lib; {
description = "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) and vice versa";
mainProgram = "geomet";
homepage = "https://github.com/geomet/geomet";
changelog = "https://github.com/geomet/geomet/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [
turion
ris
];
};
}