nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 cython, 8 pkgconfig, 9 setuptools, 10 setuptools-git-versioning, 11 12 # dependencies 13 mpi4py, 14 numpy, 15 precice, 16}: 17 18buildPythonPackage rec { 19 pname = "pyprecice"; 20 version = "3.3.1"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "precice"; 25 repo = "python-bindings"; 26 tag = "v${version}"; 27 hash = "sha256-NkTrMZ7UKB5O2jIlhLhgkOm8ZeWJA1FoursA1df7XOk="; 28 }; 29 30 build-system = [ 31 cython 32 pkgconfig 33 setuptools 34 setuptools-git-versioning 35 ]; 36 37 dependencies = [ 38 numpy 39 mpi4py 40 ]; 41 42 buildInputs = [ 43 precice 44 ]; 45 46 # no official test instruction 47 doCheck = false; 48 49 pythonImportsCheck = [ 50 "precice" 51 ]; 52 53 meta = { 54 description = "Python language bindings for preCICE"; 55 homepage = "https://github.com/precice/python-bindings"; 56 changelog = "https://github.com/precice/python-bindings/blob/${src.tag}/CHANGELOG.md"; 57 license = lib.licenses.lgpl3Only; 58 maintainers = with lib.maintainers; [ Scriptkiddi ]; 59 }; 60}