mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
36 lines
1017 B
Nix
36 lines
1017 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, cmake, python
|
|
, libosmium, protozero, boost, expat, bzip2, zlib, pybind11
|
|
, nose, shapely, pythonOlder, isPyPy, lz4, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyosmium";
|
|
version = "3.2.0";
|
|
|
|
disabled = pythonOlder "3.4" || isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmcode";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0s9h1blz4vrgcvdiikbpi2d4cy69kg2s8ki4dzampm1s0pa92if5";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 lz4 ];
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
preBuild = "cd ..";
|
|
|
|
checkInputs = [ nose shapely ];
|
|
|
|
checkPhase = "(cd test && ${python.interpreter} run_tests.py)";
|
|
|
|
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 ];
|
|
};
|
|
}
|