From 0b9973df25bc8cb656a959c486d4fe672d61209c Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Sat, 7 Dec 2019 05:16:06 +0000 Subject: [PATCH] vim-vint: 0.3.20 -> 0.3.21 The runtime dependencies are no longer pinned but the test dependencies still are. --- pkgs/development/tools/vim-vint/default.nix | 27 +++++++++------------ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/pkgs/development/tools/vim-vint/default.nix b/pkgs/development/tools/vim-vint/default.nix index 8eccdb6c285..382871ff6af 100644 --- a/pkgs/development/tools/vim-vint/default.nix +++ b/pkgs/development/tools/vim-vint/default.nix @@ -1,31 +1,26 @@ -{ fetchFromGitHub, lib, python3Packages }: +{ lib, python3Packages }: with python3Packages; buildPythonApplication rec { pname = "vim-vint"; - version = "0.3.20"; + version = "0.3.21"; - src = fetchFromGitHub { - owner = "kuniwak"; - repo = "vint"; - rev = "v${version}"; - sha256 = "0ij9br4z9h8qay6l41sicr4lbjc38hxsn3lgjrj9zpn2b3585syx"; + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax"; }; # 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 - postPatch = '' - substituteInPlace setup.py --replace "return requires" "return []" - ''; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ ansicolor chardet pyyaml setuptools] ; + checkInputs = [ pytest pytestcov ]; + propagatedBuildInputs = [ ansicolor chardet pyyaml setuptools ]; - # The acceptance tests check for stdout and location of binary files, which fails in nix-build. - checkPhase = '' - py.test -k "not acceptance" + # Unpin test dependency versions. This is fixed in master but not yet released. + preCheck = '' + sed -i 's/==.*//g' test-requirements.txt + sed -i 's/mock == 1.0.1/mock/g' setup.py ''; meta = with lib; {