2025-08-01 21:54:19 +02:00

42 lines
765 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
# build-system
pdm-backend,
# dependencies
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "plyfile";
version = "1.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dranjan";
repo = "python-plyfile";
tag = "v${version}";
hash = "sha256-J72aoXEMcuHtYaLtzWJ5UGN9HdJTnQ1/8KgdMLtwyr0=";
};
build-system = [ pdm-backend ];
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "plyfile" ];
meta = {
description = "NumPy-based text/binary PLY file reader/writer for Python";
homepage = "https://github.com/dranjan/python-plyfile";
maintainers = with lib.maintainers; [ abbradar ];
};
}