blob: e2730ab8b54bdebd3fdbe1c6190d0bbc12a91e23 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage (finalAttrs: {
pname = "pyevtk";
version = "1.6.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-H2vnh2o6AFyCWIYVUdpP5+RP8aLn/yqT1txR3u39pfQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
'';
build-system = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "pyevtk" ];
meta = {
description = "Exports data to binary VTK files for visualization/analysis";
homepage = "https://github.com/pyscience-projects/pyevtk";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|