567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
866 B
Nix
45 lines
866 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";
|
|
tag = version;
|
|
hash = "sha256-YfI29925nffzRBMJb6Gm3muvlpwP3zSw2YJ2vWcf+Bo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [ "geomet" ];
|
|
|
|
meta = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
ris
|
|
];
|
|
};
|
|
}
|