nixpkgs/pkgs/development/python-modules/pyosmium/default.nix

34 lines
873 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, cmake, python
, libosmium, protozero, boost, expat, bzip2, zlib, pybind11
2020-10-27 21:28:41 +00:00
, nose, shapely, pythonOlder, isPyPy }:
buildPythonPackage rec {
pname = "pyosmium";
2020-10-27 21:28:41 +00:00
version = "3.0.1";
disabled = pythonOlder "3.4" || isPyPy;
src = fetchFromGitHub {
owner = "osmcode";
repo = pname;
rev = "v${version}";
2020-10-27 21:28:41 +00:00
sha256 = "06jngbmmmswhyi5q5bjph6gwss28d2azn5414zf0arik5bcvz128";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libosmium protozero boost expat bzip2 zlib pybind11 ];
preBuild = "cd ..";
2020-10-27 21:28:41 +00:00
checkInputs = [ nose shapely ];
checkPhase = "(cd test && ${python.interpreter} run_tests.py)";
meta = with lib; {
description = "Python bindings for libosmium";
homepage = "https://osmcode.org/pyosmium";
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
};
}