Merge pull request #101882 from das-g/pyosmium

python3.pkgs.pyosmium: 2.15.3 -> 3.0.1
This commit is contained in:
Mario Rodas 2020-11-07 14:33:23 -05:00 committed by GitHub
commit e732be9c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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