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
61
pkgs/development/python-modules/fipy/default.nix
Normal file
61
pkgs/development/python-modules/fipy/default.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, numpy
|
||||
, scipy
|
||||
, pyamg
|
||||
, pysparse
|
||||
, future
|
||||
, matplotlib
|
||||
, tkinter
|
||||
, mpi4py
|
||||
, scikit-fmm
|
||||
, isPy27
|
||||
, gmsh
|
||||
, python
|
||||
, stdenv
|
||||
, openssh
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fipy";
|
||||
version = "3.4.2.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/usnistgov/fipy/releases/download/${version}/FiPy-${version}.tar.gz";
|
||||
sha256 = "0v5yk9b4hksy3176w4vm4gagb9kxqgv75zcyswlqvl371qwy1grk";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
scipy
|
||||
pyamg
|
||||
matplotlib
|
||||
tkinter
|
||||
mpi4py
|
||||
future
|
||||
scikit-fmm
|
||||
openssh
|
||||
] ++ lib.optionals isPy27 [ pysparse ]
|
||||
++ lib.optionals (!stdenv.isDarwin) [ gmsh ];
|
||||
|
||||
# Reading version string from Gmsh is broken in latest release of FiPy
|
||||
# This issue is repaired on master branch of FiPy
|
||||
# Fixed with: https://github.com/usnistgov/fipy/pull/848/files
|
||||
# Remove patch with next release.
|
||||
patches = [ ./gmsh.patch ];
|
||||
|
||||
checkInputs = lib.optionals (!stdenv.isDarwin) [ gmsh ];
|
||||
|
||||
checkPhase = ''
|
||||
export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh
|
||||
${python.interpreter} setup.py test --modules
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.ctcms.nist.gov/fipy/";
|
||||
description = "A Finite Volume PDE Solver Using Python";
|
||||
license = licenses.free;
|
||||
maintainers = with maintainers; [ costrouc wd15 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue