2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
libosmium,
|
|
|
|
protozero,
|
|
|
|
boost,
|
|
|
|
expat,
|
|
|
|
bzip2,
|
|
|
|
zlib,
|
|
|
|
pybind11,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-httpserver,
|
|
|
|
pytestCheckHook,
|
|
|
|
shapely,
|
|
|
|
werkzeug,
|
|
|
|
isPyPy,
|
|
|
|
lz4,
|
|
|
|
requests,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyosmium";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.7.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "setuptools";
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.6" || isPyPy;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-DBFDAKNrD93MRXjoM8dIJQ/HJ9Aj8oMJuPVQxTrKYfI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libosmium
|
|
|
|
protozero
|
|
|
|
boost
|
|
|
|
expat
|
|
|
|
bzip2
|
|
|
|
zlib
|
|
|
|
pybind11
|
|
|
|
lz4
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preBuild = "cd ..";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytestCheckHook
|
|
|
|
shapely
|
2024-01-25 14:12:00 +00:00
|
|
|
werkzeug
|
|
|
|
pytest-httpserver
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for libosmium";
|
|
|
|
homepage = "https://osmcode.org/pyosmium";
|
2021-04-05 15:23:46 +00:00
|
|
|
changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|