23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
71 lines
1.1 KiB
Nix
71 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libosmium
|
|
, protozero
|
|
, boost
|
|
, expat
|
|
, bzip2
|
|
, zlib
|
|
, pybind11
|
|
, pythonOlder
|
|
, pytest-httpserver
|
|
, pytestCheckHook
|
|
, shapely
|
|
, werkzeug
|
|
, isPyPy
|
|
, lz4
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyosmium";
|
|
version = "3.7.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6" || isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmcode";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DBFDAKNrD93MRXjoM8dIJQ/HJ9Aj8oMJuPVQxTrKYfI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
libosmium
|
|
protozero
|
|
boost
|
|
expat
|
|
bzip2
|
|
zlib
|
|
pybind11
|
|
lz4
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
preBuild = "cd ..";
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
shapely
|
|
werkzeug
|
|
pytest-httpserver
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|