nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 26 lines 856 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, precice, numpy, mpi4py, cython }: 2 3buildPythonPackage rec { 4 pname = "pyprecice"; 5 version = "2.3.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "precice"; 9 repo = "python-bindings"; 10 rev = "v${version}"; 11 sha256 = "1yz96pif63ms797bzxbfrjba4mgz7cz5dqrqghn5sg0g1b9qxnn5"; 12 }; 13 14 nativeBuildInputs = [ cython ]; 15 propagatedBuildInputs = [ numpy mpi4py precice ]; 16 17 doCheck = false; # Disable Test because everything depends on open mpi which requires network. 18 # Do not use pythonImportsCheck because this will also initialize mpi which requires a network interface 19 20 meta = with lib; { 21 description = "Python language bindings for preCICE"; 22 homepage = "https://github.com/precice/python-bindings"; 23 license = licenses.lgpl3Only; 24 maintainers = with maintainers; [ Scriptkiddi ]; 25 }; 26}