02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
37 lines
991 B
Nix
37 lines
991 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, cmake, python
|
|
, libosmium, protozero, boost, expat, bzip2, zlib, pybind11
|
|
, shapely, pythonOlder, isPyPy, lz4, requests, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyosmium";
|
|
version = "3.3.0";
|
|
|
|
disabled = pythonOlder "3.4" || isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmcode";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-vXxRXr+hRrA9oPf8wAS4qQT258Vz+KRSqYwwD6HrDxk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ];
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
preBuild = "cd ..";
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
shapely
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|