e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
45 lines
762 B
Nix
45 lines
762 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 ];
|
|
};
|
|
|
|
}
|