firedrake: Initial packaging
This commit is contained in:
36
firedrake/petsc4py.nix
Normal file
36
firedrake/petsc4py.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
with import <nixpkgs> {};
|
||||
|
||||
let
|
||||
|
||||
petsc = import ./petsc.nix;
|
||||
|
||||
in
|
||||
|
||||
python27Packages.buildPythonPackage rec {
|
||||
version = "fbe23a494ab485f44f00ee37eee9f8be8dcd9eb5";
|
||||
name = "firedrake-petsc4py-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "firedrakeproject";
|
||||
repo = "petsc4py";
|
||||
rev = "${version}";
|
||||
sha256 = "0172rgpyqh2ylr4wv4a79xfls8fbbdb86n4p6r7cx5kdy8d2y05b";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
python27Packages.cython
|
||||
openmpi
|
||||
hdf5
|
||||
petsc
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python27Packages.numpy
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://bitbucket.org/petsc/petsc4py/";
|
||||
description = "Python bindings for PETSc.";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user