depot/third_party/nixpkgs/pkgs/development/python-modules/pyosmium/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

68 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, cmake
, python
, libosmium
, protozero
, boost
, expat
, bzip2
, zlib
, pybind11
, shapely
, pythonOlder
, isPyPy
, lz4
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyosmium";
version = "3.6.0";
format = "setuptools";
disabled = pythonOlder "3.6" || isPyPy;
src = fetchFromGitHub {
owner = "osmcode";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+YJQGPQm2FGOPhNzlXX2GM+ad4QdipJhwViOKGHtqBk=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
libosmium
protozero
boost
expat
bzip2
zlib
pybind11
lz4
];
propagatedBuildInputs = [
requests
];
preBuild = "cd ..";
nativeCheckInputs = [
pytestCheckHook
shapely
];
meta = with lib; {
description = "Python bindings for libosmium";
homepage = "https://osmcode.org/pyosmium";
changelog = "https://github.com/osmcode/pyosmium/blob/v${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [ sikmir ];
};
}