1{ lib, python3Packages, fetchPypi }:
2
3with python3Packages;
4
5buildPythonApplication rec {
6 pname = "vim-vint";
7 version = "0.3.21";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax";
12 };
13
14 # For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails.
15 disabled = ! pythonAtLeast "3.5";
16
17 nativeCheckInputs = [ pytest pytest-cov ];
18 propagatedBuildInputs = [ ansicolor chardet pyyaml setuptools ];
19
20 # Unpin test dependency versions. This is fixed in master but not yet released.
21 preCheck = ''
22 sed -i 's/==.*//g' test-requirements.txt
23 sed -i 's/mock == 1.0.1/mock/g' setup.py
24 '';
25
26 meta = with lib; {
27 description = "Fast and Highly Extensible Vim script Language Lint implemented by Python";
28 homepage = "https://github.com/Kuniwak/vint";
29 license = licenses.mit;
30 mainProgram = "vint";
31 maintainers = with maintainers; [ andsild ];
32 platforms = platforms.all;
33 };
34}