depot/third_party/nixpkgs/pkgs/development/tools/misc/phpunit/default.nix

27 lines
882 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, php }:
php.buildComposerProject (finalAttrs: {
pname = "phpunit";
version = "10.4.1";
src = fetchFromGitHub {
owner = "sebastianbergmann";
repo = "phpunit";
rev = finalAttrs.version;
hash = "sha256-AKUMCa8QuXqE0HrMaxR8SvhdoYjL/CmaTzf5UhszPPw=";
};
# TODO: Open a PR against https://github.com/sebastianbergmann/phpunit
# Missing `composer.lock` from the repository.
composerLock = ./composer.lock;
vendorHash = "sha256-xFXf9Nc6OxvZJ4Bt9zFhhdsJY4VwnztfCE4j5tOqQKQ=";
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;
maintainers = [ lib.maintainers.onny ] ++ lib.teams.php.members;
};
})