depot/third_party/nixpkgs/pkgs/development/python-modules/plyfile/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

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 ];
};
}