depot/third_party/nixpkgs/pkgs/development/python-modules/plyfile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
754 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
# build-system
pdm-pep517,
# dependencies
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "plyfile";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dranjan";
repo = "python-plyfile";
rev = "refs/tags/v${version}";
hash = "sha256-HlyqljfjuaZoG5f2cfDQj+7KS0en7pW2PPEnpvH8U+E=";
};
nativeBuildInputs = [ pdm-pep517 ];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "NumPy-based text/binary PLY file reader/writer for Python";
homepage = "https://github.com/dranjan/python-plyfile";
maintainers = with maintainers; [ abbradar ];
};
}