Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 967 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, cmake, python 2, libosmium, protozero, boost, expat, bzip2, zlib, pybind11 3, nose, shapely, pythonOlder, isPyPy, lz4 }: 4 5buildPythonPackage rec { 6 pname = "pyosmium"; 7 version = "3.1.3"; 8 9 disabled = pythonOlder "3.4" || isPyPy; 10 11 src = fetchFromGitHub { 12 owner = "osmcode"; 13 repo = pname; 14 rev = "v${version}"; 15 sha256 = "11ma8nr7k2ixwwb55fiqvrj5qbmpgkyfk0canz4l0m8b7rcw3qsc"; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ]; 20 21 preBuild = "cd .."; 22 23 checkInputs = [ nose shapely ]; 24 25 checkPhase = "(cd test && ${python.interpreter} run_tests.py)"; 26 27 meta = with lib; { 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 ]; 33 }; 34}