1{ fetchFromGitHub, lib, python3Packages, stdenv }:
2
3with python3Packages;
4
5buildPythonApplication rec {
6 name = "vim-vint-${version}";
7 version = "0.3.18";
8
9 src = fetchFromGitHub {
10 owner = "kuniwak";
11 repo = "vint";
12 rev = "v${version}";
13 sha256 = "0qrlimg385sxq4y6vqbanby31inaa1q47w9qcw5knwffbz96whrs";
14 };
15
16 # For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails.
17 disabled = ! pythonAtLeast "3.5";
18
19 # Prevent setup.py from adding dependencies in run-time and insisting on specific package versions
20 patchPhase = ''
21 substituteInPlace setup.py --replace "return requires" "return []"
22 '';
23 buildInputs = [ coverage pytest pytestcov ];
24 propagatedBuildInputs = [ ansicolor chardet pyyaml ] ;
25
26 # The acceptance tests check for stdout and location of binary files, which fails in nix-build.
27 checkPhase = ''
28 py.test -k "not acceptance"
29 '';
30
31 meta = with lib; {
32 description = "Fast and Highly Extensible Vim script Language Lint implemented by Python";
33 homepage = https://github.com/Kuniwak/vint;
34 license = licenses.mit;
35 maintainers = with maintainers; [ andsild ];
36 platforms = platforms.all;
37 };
38}