Merge pull request #237077 from fabaff/pynvim-pytest-runner
python311Packages.pynvim: remove pytest-runner
This commit is contained in:
commit
7e8b530f14
1 changed files with 23 additions and 14 deletions
|
@ -1,38 +1,47 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, lib
|
|
||||||
, msgpack
|
, msgpack
|
||||||
, greenlet
|
, greenlet
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, pytest-runner
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pynvim";
|
pname = "pynvim";
|
||||||
version = "0.4.3";
|
version = "0.4.3";
|
||||||
disabled = pythonOlder "3.4";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
|
hash = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
postPatch = ''
|
||||||
pytest-runner
|
substituteInPlace setup.py \
|
||||||
|
--replace " + pytest_runner" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
msgpack
|
||||||
|
] ++ lib.optional (!isPyPy) [
|
||||||
|
greenlet
|
||||||
];
|
];
|
||||||
|
|
||||||
# Tests require pkgs.neovim,
|
# Tests require pkgs.neovim which we cannot add because of circular dependency
|
||||||
# which we cannot add because of circular dependency.
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ msgpack ]
|
pythonImportsCheck = [
|
||||||
++ lib.optional (!isPyPy) greenlet;
|
"pynvim"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Python client for Neovim";
|
description = "Python client for Neovim";
|
||||||
homepage = "https://github.com/neovim/python-client";
|
homepage = "https://github.com/neovim/pynvim";
|
||||||
license = lib.licenses.asl20;
|
changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
|
||||||
maintainers = with lib.maintainers; [ ];
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue