nixpkgs-suyu/pkgs/development/tools/vim-vint/default.nix
Ryan Mulligan 25058497f4 vim-vint: 0.3.11 -> 0.3.18
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/.vint-wrapped -h` got 0 exit code
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/.vint-wrapped --help` got 0 exit code
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/.vint-wrapped -v` and found version 0.3.18
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/.vint-wrapped --version` and found version 0.3.18
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/vint -h` got 0 exit code
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/vint --help` got 0 exit code
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/vint -v` and found version 0.3.18
- ran `/nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18/bin/vint --version` and found version 0.3.18
- found 0.3.18 with grep in /nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18
- found 0.3.18 in filename of file in /nix/store/c0vdpjgxib99lnhsvvn440jbppnmiqi0-vim-vint-0.3.18

cc "@andsild"
2018-02-28 11:36:22 +01:00

38 lines
1.2 KiB
Nix

{ fetchFromGitHub, lib, python3Packages, stdenv }:
with python3Packages;
buildPythonApplication rec {
name = "vim-vint-${version}";
version = "0.3.18";
src = fetchFromGitHub {
owner = "kuniwak";
repo = "vint";
rev = "v${version}";
sha256 = "0qrlimg385sxq4y6vqbanby31inaa1q47w9qcw5knwffbz96whrs";
};
# 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;
};
}