uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/development/python-modules/gudhi/default.nix
Normal file
64
pkgs/development/python-modules/gudhi/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, cmake
|
||||
, boost
|
||||
, eigen
|
||||
, gmp
|
||||
, cgal_5 # see https://github.com/NixOS/nixpkgs/pull/94875 about cgal
|
||||
, mpfr
|
||||
, tbb
|
||||
, numpy
|
||||
, cython
|
||||
, pybind11
|
||||
, matplotlib
|
||||
, scipy
|
||||
, pytest
|
||||
, enableTBB ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gudhi";
|
||||
version = "3.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GUDHI";
|
||||
repo = "gudhi-devel";
|
||||
rev = "tags/gudhi-release-${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "1m03qazzfraxn62l1cb11icjz4x8q2sg9c2k3syw5v0yv9ndgx1v";
|
||||
};
|
||||
|
||||
patches = [ ./remove_explicit_PYTHONPATH.patch ];
|
||||
|
||||
nativeBuildInputs = [ cmake numpy cython pybind11 matplotlib ];
|
||||
buildInputs = [ boost eigen gmp cgal_5 mpfr ]
|
||||
++ lib.optionals enableTBB [ tbb ];
|
||||
propagatedBuildInputs = [ numpy scipy ];
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
"-DWITH_GUDHI_PYTHON=ON"
|
||||
"-DPython_ADDITIONAL_VERSIONS=3"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cd src/python
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
rm -r gudhi
|
||||
${cmake}/bin/ctest --output-on-failure
|
||||
'';
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue