depot/third_party/nixpkgs/pkgs/development/python-modules/dm-tree/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

60 lines
970 B
Nix

{
stdenv,
abseil-cpp,
absl-py,
attrs,
buildPythonPackage,
cmake,
fetchFromGitHub,
lib,
numpy,
pybind11,
wrapt,
}:
buildPythonPackage rec {
pname = "dm-tree";
version = "0.1.8";
format = "setuptools";
src = fetchFromGitHub {
owner = "deepmind";
repo = "tree";
rev = "refs/tags/${version}";
hash = "sha256-VvSJTuEYjIz/4TTibSLkbg65YmcYqHImTHOomeorMJc=";
};
patches = [ ./cmake.patch ];
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
pybind11
];
buildInputs = [
abseil-cpp
pybind11
];
nativeCheckInputs = [
absl-py
attrs
numpy
wrapt
];
pythonImportsCheck = [ "tree" ];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Tree is a library for working with nested data structures";
homepage = "https://github.com/deepmind/tree";
license = licenses.asl20;
maintainers = with maintainers; [
samuela
ndl
];
};
}