depot/third_party/nixpkgs/pkgs/by-name/ph/phpunit/package.nix

31 lines
839 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, nix-update-script
, php
}:
php.buildComposerProject (finalAttrs: {
pname = "phpunit";
version = "11.2.2";
src = fetchFromGitHub {
owner = "sebastianbergmann";
repo = "phpunit";
rev = finalAttrs.version;
hash = "sha256-MhQxPZeg0mKDmy/iIUj+2oybBC3CoIYj2PWB+RBWq10=";
};
vendorHash = "sha256-w2Yu0T8omr8F7r5nBZOmRJE0LEdGQ3XAdxNZoK1sx1M=";
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/sebastianbergmann/phpunit/blob/${finalAttrs.version}/ChangeLog-${lib.versions.majorMinor finalAttrs.version}.md";
description = "PHP Unit Testing framework";
homepage = "https://phpunit.de";
license = lib.licenses.bsd3;
mainProgram = "phpunit";
maintainers = with lib.maintainers; [ onny patka ] ++ lib.teams.php.members;
};
})