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