mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 12:59:04 +02:00
Merge pull request #101882 from das-g/pyosmium
python3.pkgs.pyosmium: 2.15.3 -> 3.0.1
This commit is contained in:
commit
e732be9c08
|
@ -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)";
|
||||
|
||||
|
|
Loading…
Reference in a new issue