uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
60
pkgs/development/python-modules/pre-commit-hooks/default.nix
Normal file
60
pkgs/development/python-modules/pre-commit-hooks/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, ruamel-yaml
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pre-commit-hooks";
|
||||
version = "4.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pre-commit";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-jSu4LutEgpeAbCgSHgk6VXQKLZo00T3TrQVZxsNU1co=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ruamel-yaml
|
||||
toml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
git
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Note: this is not likely to ever work on Darwin
|
||||
# https://github.com/pre-commit/pre-commit-hooks/pull/655
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
# the tests require a functional git installation which requires a valid HOME
|
||||
# directory.
|
||||
preCheck = ''
|
||||
export HOME="$(mktemp -d)"
|
||||
|
||||
git config --global user.name "Nix Builder"
|
||||
git config --global user.email "nix-builder@nixos.org"
|
||||
git init .
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pre_commit_hooks"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Some out-of-the-box hooks for pre-commit";
|
||||
homepage = "https://github.com/pre-commit/pre-commit-hooks";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kalbasit ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue