vim-vint: 0.3.20 -> 0.3.21
The runtime dependencies are no longer pinned but the test dependencies still are.
This commit is contained in:
parent
0fef5b45e7
commit
0b9973df25
@ -1,31 +1,26 @@
|
|||||||
{ fetchFromGitHub, lib, python3Packages }:
|
{ lib, python3Packages }:
|
||||||
|
|
||||||
with python3Packages;
|
with python3Packages;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "vim-vint";
|
pname = "vim-vint";
|
||||||
version = "0.3.20";
|
version = "0.3.21";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = python3Packages.fetchPypi {
|
||||||
owner = "kuniwak";
|
inherit pname version;
|
||||||
repo = "vint";
|
sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax";
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0ij9br4z9h8qay6l41sicr4lbjc38hxsn3lgjrj9zpn2b3585syx";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails.
|
# For python 3.5 > version > 2.7 , a nested dependency (pythonPackages.hypothesis) fails.
|
||||||
disabled = ! pythonAtLeast "3.5";
|
disabled = ! pythonAtLeast "3.5";
|
||||||
|
|
||||||
# Prevent setup.py from adding dependencies in run-time and insisting on specific package versions
|
checkInputs = [ pytest pytestcov ];
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py --replace "return requires" "return []"
|
|
||||||
'';
|
|
||||||
checkInputs = [ pytest ];
|
|
||||||
propagatedBuildInputs = [ ansicolor chardet pyyaml setuptools ];
|
propagatedBuildInputs = [ ansicolor chardet pyyaml setuptools ];
|
||||||
|
|
||||||
# The acceptance tests check for stdout and location of binary files, which fails in nix-build.
|
# Unpin test dependency versions. This is fixed in master but not yet released.
|
||||||
checkPhase = ''
|
preCheck = ''
|
||||||
py.test -k "not acceptance"
|
sed -i 's/==.*//g' test-requirements.txt
|
||||||
|
sed -i 's/mock == 1.0.1/mock/g' setup.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user