nixpkgs/pkgs/development/tools/vim-vint/default.nix
R. RyanTM 90b9bb7ea7 vim-vint: 0.3.18 -> 0.3.19 (#43152)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/vim-vint/versions.

Version release notes (from GitHub):
# Change Log
This is a release before merging #275. After #275 merged, we probably face the many problems, so we should publish it at the next release.

[diff](aa0648cf12...6422c268c1)

## New features
- Initial support for stdin (#240)

## Bugfixes
- Disable ProhibitImplicitScopeVariable (#273)
- Suppress warnings caused by map([], ' "x" ') (#259)
- Fix linting autocmd (#260)
- Fix acceptance tests (#262)

## Documentation
- Link to default config (#270)
- Fix a broken code block for example (#276)

## Performance Improvements
- Optimize ProhibitUnusedVariable (#269)
- Optimize get_asset_path (#268)
- Optimize ConfigProjectSource (#267)

These checks were done:

- built on NixOS
- /nix/store/yaywc2r3anf8r8pkw31si2y5phly68r5-vim-vint-0.3.19/bin/.vint-wrapped passed the binary check.
- /nix/store/yaywc2r3anf8r8pkw31si2y5phly68r5-vim-vint-0.3.19/bin/vint passed the binary check.
- 2 of 2 passed binary check by having a zero exit code.
- 2 of 2 passed binary check by having the new version present in output.
- found 0.3.19 with grep in /nix/store/yaywc2r3anf8r8pkw31si2y5phly68r5-vim-vint-0.3.19
- directory tree listing: https://gist.github.com/9f3ec9fa4587a10f4c05cb1d043d96c6
- du listing: https://gist.github.com/bb1c02d3f65c3b7acb80f77938706b7c
2018-07-09 16:09:22 +02:00

39 lines
1.2 KiB
Nix

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