Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ buildPythonPackage, fetchFromGitHub, pythonOlder, lib, cmake, setuptools, typing-extensions, pybind11, pytestCheckHook,}:
buildPythonPackage rec { pname = "optree"; version = "0.14.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "metaopt"; repo = "optree"; tag = "v${version}"; hash = "sha256-5PIe/mXPNohwM0oNT/zSPmNUycjXuujtIFCki5t7V1I="; };
dontUseCmakeConfigure = true;
propagatedBuildInputs = [ typing-extensions ]; nativeBuildInputs = [ setuptools pybind11 cmake ];
nativeCheckInputs = [ pytestCheckHook ]; # prevent import failures from pytest preCheck = '' rm -r optree ''; disabledTests = [ # Fails because the 'test_treespec' module can't be found "test_treespec_pickle_missing_registration" ]; pythonImportsCheck = [ "optree" ];
meta = { description = "Optimized PyTree Utilities"; homepage = "https://github.com/metaopt/optree"; changelog = "https://github.com/metaopt/optree/releases"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ pandapip1 ]; };}