fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
68 lines
1.1 KiB
Nix
68 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 ];
|
|
};
|
|
}
|