mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
31 lines
822 B
Nix
31 lines
822 B
Nix
{ lib, fetchFromGitHub, buildPythonApplication, pytestCheckHook, git, testers, mu-repo }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "mu-repo";
|
|
version = "1.8.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fabioz";
|
|
repo = "mu-repo";
|
|
rev = "mu_repo_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
|
hash = "sha256-COc7hbu72eA+ikZQkz6zXtFyaa/AKhoF+Zvsr6ZVOuY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ git ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook git ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = mu-repo;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Tool to help in dealing with multiple git repositories";
|
|
homepage = "http://fabioz.github.io/mu-repo/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ sikmir ];
|
|
mainProgram = "mu";
|
|
};
|
|
}
|