diff options
author | asildnes <andsild@gmail.com> | 2017-02-05 11:56:50 +0100 |
---|---|---|
committer | asildnes <andsild@gmail.com> | 2017-02-21 12:48:03 +0100 |
commit | 88b8f38e71d954f6078b962eeb4b8d98d1672d73 (patch) | |
tree | 314145817c6bdaa0a5dc4c3623b51c8257ac46ce /pkgs/development/tools/vim-vint | |
parent | e69f76470a58aa80fab4095cc7a47880a90ec3c6 (diff) |
vint: init at 0.3.11
Diffstat (limited to 'pkgs/development/tools/vim-vint')
-rw-r--r-- | pkgs/development/tools/vim-vint/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/tools/vim-vint/default.nix b/pkgs/development/tools/vim-vint/default.nix new file mode 100644 index 0000000000000..cf21804ddde22 --- /dev/null +++ b/pkgs/development/tools/vim-vint/default.nix @@ -0,0 +1,38 @@ +{ fetchFromGitHub, lib, python3Packages, stdenv }: + +with python3Packages; + +buildPythonApplication rec { + name = "vim-vint-${version}"; + version = "0.3.11"; + + src = fetchFromGitHub { + owner = "kuniwak"; + repo = "vint"; + rev = "v${version}"; + sha256 = "0xl166xs7sm404f1qz2s0xcry7fr1hgyvhqhyj1qj0dql9i3xx8v"; + }; + + # For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails. + disabled = ! pythonAtLeast "3.5"; + + # Prevent setup.py from adding dependencies in run-time and insisting on specific package versions + patchPhase = '' + substituteInPlace setup.py --replace "return requires" "return []" + ''; + buildInputs = [ coverage pytest pytestcov ]; + propagatedBuildInputs = [ ansicolor chardet pyyaml ] ; + + # The acceptance tests check for stdout and location of binary files, which fails in nix-build. + checkPhase = '' + py.test -k "not acceptance" + ''; + + meta = with lib; { + description = "Fast and Highly Extensible Vim script Language Lint implemented by Python"; + homepage = "https://github.com/Kuniwak/vint"; + license = licenses.mit; + maintainers = with maintainers; [ andsild ]; + platforms = platforms.all; + }; +} |