mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
74 lines
1.2 KiB
Nix
74 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
libosmium,
|
|
protozero,
|
|
boost,
|
|
expat,
|
|
bzip2,
|
|
zlib,
|
|
pybind11,
|
|
pythonOlder,
|
|
pytest-httpserver,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
shapely,
|
|
werkzeug,
|
|
isPyPy,
|
|
lz4,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyosmium";
|
|
version = "4.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7" || isPyPy;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmcode";
|
|
repo = "pyosmium";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pW2w/M4P4DtGhnTy72w0wjMtpLtSgvYGaemme/rRrwM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
libosmium
|
|
protozero
|
|
boost
|
|
expat
|
|
bzip2
|
|
zlib
|
|
pybind11
|
|
lz4
|
|
];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
preBuild = "cd ..";
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
shapely
|
|
werkzeug
|
|
pytest-httpserver
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Python bindings for libosmium";
|
|
homepage = "https://osmcode.org/pyosmium";
|
|
changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
};
|
|
}
|