Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dm-tree / default.nix
blob071a0fee432e6061f8ef6ac9406df1eb5b69074a
1 { stdenv
2 , abseil-cpp
3 , absl-py
4 , attrs
5 , buildPythonPackage
6 , cmake
7 , fetchFromGitHub
8 , lib
9 , numpy
10 , pybind11
11 , wrapt
14 buildPythonPackage rec {
15   pname = "dm-tree";
16   version = "0.1.8";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "deepmind";
21     repo = "tree";
22     rev = "refs/tags/${version}";
23     hash = "sha256-VvSJTuEYjIz/4TTibSLkbg65YmcYqHImTHOomeorMJc=";
24   };
26   patches = [
27     ./cmake.patch
28   ];
30   dontUseCmakeConfigure = true;
32   nativeBuildInputs = [
33     cmake
34     pybind11
35   ];
37   buildInputs = [
38     abseil-cpp
39     pybind11
40   ];
42   nativeCheckInputs = [
43     absl-py
44     attrs
45     numpy
46     wrapt
47   ];
49   pythonImportsCheck = [ "tree" ];
51   meta = with lib; {
52     broken = stdenv.isDarwin;
53     description = "Tree is a library for working with nested data structures.";
54     homepage = "https://github.com/deepmind/tree";
55     license = licenses.asl20;
56     maintainers = with maintainers; [ samuela ndl ];
57   };