diff --git a/pkgs/development/python-modules/pyosmium/default.nix b/pkgs/development/python-modules/pyosmium/default.nix index abf2bbf698fe..fabca6700316 100644 --- a/pkgs/development/python-modules/pyosmium/default.nix +++ b/pkgs/development/python-modules/pyosmium/default.nix @@ -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 ]; }; }