Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 97 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ lib, fetchFromGitHub, buildPythonPackage, cmake, setuptools, boost, eigen, gmp, cgal, mpfr, tbb, numpy, cython, pybind11, matplotlib, scipy, pytest, enableTBB ? false,}:
buildPythonPackage rec { pname = "gudhi"; version = "3.11.0"; pyproject = true;
src = fetchFromGitHub { owner = "GUDHI"; repo = "gudhi-devel"; tag = "tags/gudhi-release-${version}"; fetchSubmodules = true; hash = "sha256-EebPvmioTYBv3VR6SNEfiqi2GC4sZn8WEj0fu42B8yM="; };
nativeBuildInputs = [ cmake numpy cython pybind11 matplotlib setuptools ]; buildInputs = [ boost eigen gmp cgal mpfr ] ++ lib.optionals enableTBB [ tbb ]; propagatedBuildInputs = [ numpy scipy ]; nativeCheckInputs = [ pytest ];
cmakeFlags = [ (lib.cmakeBool "WITH_GUDHI_PYTHON" true) (lib.cmakeFeature "Python_ADDITIONAL_VERSIONS" "3") ];
prePatch = '' substituteInPlace src/python/CMakeLists.txt \ --replace '"''${GUDHI_PYTHON_PATH_ENV}"' "" '';
preBuild = '' cd src/python '';
checkPhase = '' runHook preCheck
rm -r gudhi ctest --output-on-failure
runHook postCheck '';
pythonImportsCheck = [ "gudhi" "gudhi.hera" "gudhi.point_cloud" "gudhi.clustering" ];
meta = { description = "Library for Computational Topology and Topological Data Analysis (TDA)"; homepage = "https://gudhi.inria.fr/python/latest/"; downloadPage = "https://github.com/GUDHI/gudhi-devel"; license = with lib.licenses; [ mit gpl3 ]; maintainers = with lib.maintainers; [ yl3dy ]; };}