1 { lib, buildPythonPackage, fetchFromGitHub, cmake, python
2 , libosmium, protozero, boost, expat, bzip2, zlib, pybind11
3 , nose, shapely, pythonOlder, isPyPy, lz4 }:
5 buildPythonPackage rec {
9 disabled = pythonOlder "3.4" || isPyPy;
11 src = fetchFromGitHub {
15 sha256 = "11ma8nr7k2ixwwb55fiqvrj5qbmpgkyfk0canz4l0m8b7rcw3qsc";
18 nativeBuildInputs = [ cmake ];
19 buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ];
23 checkInputs = [ nose shapely ];
25 checkPhase = "(cd test && ${python.interpreter} run_tests.py)";
28 description = "Python bindings for libosmium";
29 homepage = "https://osmcode.org/pyosmium";
30 changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md";
31 license = licenses.bsd2;
32 maintainers = with maintainers; [ sikmir ];