Merge pull request #44239 from borisbabic/feature/init-pre-commit

gitAndTools.pre-commit: init at 1.10.4
This commit is contained in:
Robert Schütz 2018-07-31 14:35:33 +02:00 committed by GitHub
commit e858b285c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 130 additions and 0 deletions

View File

@ -539,6 +539,11 @@
github = "boothead";
name = "Ben Ford";
};
borisbabic = {
email = "boris.ivan.babic@gmail.com";
github = "borisbabic";
name = "Boris Babić";
};
bosu = {
email = "boriss@gmail.com";
github = "bosu";

View File

@ -111,6 +111,8 @@ let
hubUnstable = throw "use gitAndTools.hub instead";
pre-commit = callPackage ./pre-commit { };
qgit = qt5.callPackage ./qgit { };
stgit = callPackage ./stgit {

View File

@ -0,0 +1,31 @@
{ stdenv, python3Packages }:
with python3Packages; buildPythonApplication rec {
pname = "pre_commit";
version = "1.10.4";
src = fetchPypi {
inherit pname version;
sha256 = "1kn8h9k9ca330m5n7r4cvxp679y3sc95m1x23a3qhzgam09n7jwr";
};
propagatedBuildInputs = [
aspy-yaml
cached-property
cfgv
identify
nodeenv
six
toml
virtualenv
];
# Tests fail due to a missing windll dependency
doCheck = false;
meta = with stdenv.lib; {
description = "A framework for managing and maintaining multi-language pre-commit hooks";
homepage = https://pre-commit.com/;
license = licenses.mit;
maintainers = with maintainers; [ borisbabic ];
};
}

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, pyyaml }:
buildPythonPackage rec {
pname = "aspy.yaml";
version = "1.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "1ajb97kn044ximkzq2090h4yblrhw77540pwiw345cp7mwzy4xqa";
};
propagatedBuildInputs = [ pyyaml ];
# Tests not included in PyPI tarball
doCheck = false;
meta = with lib; {
description = "A few extensions to pyyaml";
homepage = https://github.com/asottile/aspy.yaml;
license = licenses.mit;
};
}

View File

@ -0,0 +1,22 @@
{ lib, buildPythonPackage, fetchPypi, six }:
buildPythonPackage rec {
pname = "cfgv";
version = "1.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "1akm5xdbi5kckgnhhfj6qavjwakm44cwqzhfx2ycgh7mkym1qyfi";
};
propagatedBuildInputs = [ six ];
# Tests not included in PyPI tarball
doCheck = false;
meta = with lib; {
description = "Validate configuration and produce human readable error messages";
homepage = https://github.com/asottile/cfgv;
license = licenses.mit;
};
}

View File

@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "identify";
version = "1.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "0hvwfpf6fmgn93abrvj88pi7sbcib32s4c5r99lw67kbziq5x129";
};
# Tests not included in PyPI tarball
doCheck = false;
meta = with lib; {
description = "File identification library for Python";
homepage = https://github.com/chriskuehl/identify;
license = licenses.mit;
};
}

View File

@ -0,0 +1,20 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "nodeenv";
version = "1.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "0vs9nyf9w3655j1vv3abxj4vbig61c0hjmhpfb91gblv32shl15a";
};
# Tests not included in PyPI tarball
doCheck = false;
meta = with lib; {
description = "Node.js virtual environment builder";
homepage = https://github.com/ekalinin/nodeenv;
license = licenses.bsd3;
};
}

View File

@ -186,6 +186,8 @@ in {
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
aspy-yaml = callPackage ../development/python-modules/aspy.yaml { };
astral = callPackage ../development/python-modules/astral { };
astropy = callPackage ../development/python-modules/astropy { };
@ -1520,6 +1522,8 @@ in {
cherrypy = callPackage ../development/python-modules/cherrypy {};
cfgv = callPackage ../development/python-modules/cfgv { };
cftime = callPackage ../development/python-modules/cftime {};
cjson = callPackage ../development/python-modules/cjson { };
@ -3050,6 +3054,8 @@ in {
idna-ssl = callPackage ../development/python-modules/idna-ssl { };
identify = callPackage ../development/python-modules/identify { };
ijson = callPackage ../development/python-modules/ijson {};
imagesize = buildPythonPackage rec {
@ -8440,6 +8446,8 @@ in {
inherit (pkgs) which;
};
nodeenv = callPackage ../development/python-modules/nodeenv { };
nose = buildPythonPackage rec {
version = "1.3.7";
name = "nose-${version}";