at master 876 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 numpy, 7 pytestCheckHook, 8 pytest-cov-stub, 9}: 10 11buildPythonPackage rec { 12 pname = "pyevtk"; 13 version = "1.6.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 19 hash = "sha256-H2vnh2o6AFyCWIYVUdpP5+RP8aLn/yqT1txR3u39pfQ="; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py \ 24 --replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],' 25 ''; 26 27 build-system = [ setuptools ]; 28 dependencies = [ numpy ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pytest-cov-stub 33 ]; 34 35 pythonImportsCheck = [ "pyevtk" ]; 36 37 meta = { 38 description = "Exports data to binary VTK files for visualization/analysis"; 39 homepage = "https://github.com/pyscience-projects/pyevtk"; 40 license = lib.licenses.bsd2; 41 maintainers = with lib.maintainers; [ sigmanificient ]; 42 }; 43}