nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "vim-vint";
9 version = "0.3.21";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "Vimjas";
14 repo = "vint";
15 tag = "v${version}";
16 hash = "sha256-A0yXDkB/b9kEEXSoLeqVdmdm4p2PYL2QHqbF4FgAn30=";
17 };
18
19 build-system = with python3Packages; [ setuptools ];
20
21 dependencies = with python3Packages; [
22 ansicolor
23 chardet
24 pyyaml
25 setuptools # pkg_resources is imported during runtime
26 ];
27
28 nativeCheckInputs = with python3Packages; [
29 pytestCheckHook
30 pytest-cov-stub
31 ];
32
33 preCheck = ''
34 substituteInPlace \
35 test/acceptance/test_cli.py \
36 test/acceptance/test_cli_vital.py \
37 --replace-fail \
38 "cmd = ['bin/vint'" \
39 "cmd = ['$out/bin/vint'"
40 '';
41
42 meta = with lib; {
43 description = "Fast and Highly Extensible Vim script Language Lint implemented by Python";
44 homepage = "https://github.com/Kuniwak/vint";
45 license = licenses.mit;
46 mainProgram = "vint";
47 maintainers = [ ];
48 platforms = platforms.all;
49 };
50}