nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 58 lines 1.0 kB view raw
1{ stdenv 2, abseil-cpp 3, absl-py 4, attrs 5, buildPythonPackage 6, cmake 7, fetchFromGitHub 8, lib 9, numpy 10, pybind11 11, wrapt 12}: 13 14buildPythonPackage rec { 15 pname = "dm-tree"; 16 # As of 2021-12-29, the latest stable version still builds with Bazel. 17 version = "unstable-2021-12-20"; 18 19 src = fetchFromGitHub { 20 owner = "deepmind"; 21 repo = "tree"; 22 rev = "b452e5c2743e7489b4ba7f16ecd51c516d7cd8e3"; 23 sha256 = "1r187xwpvnnj98lyasngcv3lbxz0ziihpl5dbnjbfbjr0kh6z0j9"; 24 }; 25 26 patches = [ 27 ./cmake.patch 28 ]; 29 30 dontUseCmakeConfigure = true; 31 32 nativeBuildInputs = [ 33 cmake 34 pybind11 35 ]; 36 37 buildInputs = [ 38 abseil-cpp 39 pybind11 40 ]; 41 42 checkInputs = [ 43 absl-py 44 attrs 45 numpy 46 wrapt 47 ]; 48 49 pythonImportsCheck = [ "tree" ]; 50 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 }; 58}