python312Packages.pyosmium: modernize
This commit is contained in:
parent
2f1d85fa73
commit
dca5925834
@ -13,6 +13,7 @@
|
||||
pythonOlder,
|
||||
pytest-httpserver,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
shapely,
|
||||
werkzeug,
|
||||
isPyPy,
|
||||
@ -23,17 +24,19 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pyosmium";
|
||||
version = "4.0.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6" || isPyPy;
|
||||
disabled = pythonOlder "3.7" || isPyPy;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "osmcode";
|
||||
repo = pname;
|
||||
repo = "pyosmium";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-HYp1MzXSa0tx0hY0JyMf2bmEvm5YuS2R+o25TsO8J6I=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = [
|
||||
@ -47,7 +50,7 @@ buildPythonPackage rec {
|
||||
lz4
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
dependencies = [ requests ];
|
||||
|
||||
preBuild = "cd ..";
|
||||
|
||||
@ -58,11 +61,13 @@ buildPythonPackage rec {
|
||||
pytest-httpserver
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for libosmium";
|
||||
homepage = "https://osmcode.org/pyosmium";
|
||||
changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ sikmir ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user