python3.pkgs.pyosmium: 2.15.3 -> 3.0.1

This commit is contained in:
Raphael Borun Das Gupta 2020-10-27 22:28:41 +01:00
parent f08a5cc832
commit 11f9033305

View file

@ -1,16 +1,18 @@
{ lib, buildPythonPackage, fetchFromGitHub, cmake, python { lib, buildPythonPackage, fetchFromGitHub, cmake, python
, libosmium, protozero, boost, expat, bzip2, zlib, pybind11 , libosmium, protozero, boost, expat, bzip2, zlib, pybind11
, nose, shapely, mock, isPy3k }: , nose, shapely, pythonOlder, isPyPy }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyosmium"; pname = "pyosmium";
version = "2.15.3"; version = "3.0.1";
disabled = pythonOlder "3.4" || isPyPy;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "osmcode"; owner = "osmcode";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1523ym9i4rnwi5kcp7n2lm67kxlhar8xlv91s394ixzwax9bgg7w"; sha256 = "06jngbmmmswhyi5q5bjph6gwss28d2azn5414zf0arik5bcvz128";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -18,7 +20,7 @@ buildPythonPackage rec {
preBuild = "cd .."; preBuild = "cd ..";
checkInputs = [ nose shapely ] ++ lib.optionals (!isPy3k) [ mock ]; checkInputs = [ nose shapely ];
checkPhase = "(cd test && ${python.interpreter} run_tests.py)"; checkPhase = "(cd test && ${python.interpreter} run_tests.py)";