1{ lib, buildPythonPackage, fetchFromGitHub, cmake, python 2, libosmium, protozero, boost, expat, bzip2, zlib, pybind11 3, nose, shapely, pythonOlder, isPyPy, lz4, requests }: 4 5buildPythonPackage rec { 6 pname = "pyosmium"; 7 version = "3.2.0"; 8 9 disabled = pythonOlder "3.4" || isPyPy; 10 11 src = fetchFromGitHub { 12 owner = "osmcode"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "0s9h1blz4vrgcvdiikbpi2d4cy69kg2s8ki4dzampm1s0pa92if5"; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ]; 20 propagatedBuildInputs = [ requests ]; 21 22 preBuild = "cd .."; 23 24 checkInputs = [ nose shapely ]; 25 26 checkPhase = "(cd test && ${python.interpreter} run_tests.py)"; 27 28 meta = with lib; { 29 description = "Python bindings for libosmium"; 30 homepage = "https://osmcode.org/pyosmium"; 31 changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md"; 32 license = licenses.bsd2; 33 maintainers = with maintainers; [ sikmir ]; 34 }; 35}