nixpkgs/pkgs/development/python-modules/phply/default.nix
2024-09-04 12:54:31 +02:00

36 lines
671 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
ply,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "phply";
version = "1.2.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Cyd3TShfUHo0RYBaBfj7KZj1bXCScPeLiSCLZbDYSRc=";
};
build-system = [ setuptools ];
dependencies = [ ply ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "phply" ];
meta = with lib; {
description = "Lexer and parser for PHP source implemented using PLY";
homepage = "https://github.com/viraptor/phply";
license = licenses.bsd3;
maintainers = with maintainers; [ erictapen ];
};
}