depot/third_party/nixpkgs/pkgs/development/python-modules/pyevtk/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

45 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
pytest-cov,
}:
buildPythonPackage rec {
pname = "pyevtk";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pyscience-projects";
repo = "pyevtk";
rev = "refs/tags/v${version}";
hash = "sha256-HrodoVxjREZiutgRJ3ZUrART29+gAZfpR9f4A4SRh4Q=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
'';
build-system = [ setuptools ];
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "pyevtk" ];
meta = {
description = "Exports data to binary VTK files for visualization/analysis";
homepage = "https://github.com/pyscience-projects/pyevtk";
changelog = "https://github.com/pyscience-projects/pyevtk/blob/${src.rev}/CHANGES.txt";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}