Merge pull request #237077 from fabaff/pynvim-pytest-runner

python311Packages.pynvim: remove pytest-runner
This commit is contained in:
Fabian Affolter 2023-06-10 23:43:18 +02:00 committed by GitHub
commit 7e8b530f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,38 +1,47 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
, lib
, msgpack
, greenlet
, pythonOlder
, isPyPy
, pytest-runner
}:
buildPythonPackage rec {
pname = "pynvim";
version = "0.4.3";
disabled = pythonOlder "3.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-OnlTeL3l6AkvvrOhqZvpxhPSaFVC8dsOXG/UZ+7Vbf8=";
};
nativeBuildInputs = [
pytest-runner
postPatch = ''
substituteInPlace setup.py \
--replace " + pytest_runner" ""
'';
propagatedBuildInputs = [
msgpack
] ++ lib.optional (!isPyPy) [
greenlet
];
# Tests require pkgs.neovim,
# which we cannot add because of circular dependency.
# Tests require pkgs.neovim which we cannot add because of circular dependency
doCheck = false;
propagatedBuildInputs = [ msgpack ]
++ lib.optional (!isPyPy) greenlet;
pythonImportsCheck = [
"pynvim"
];
meta = {
meta = with lib; {
description = "Python client for Neovim";
homepage = "https://github.com/neovim/python-client";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
homepage = "https://github.com/neovim/pynvim";
changelog = "https://github.com/neovim/pynvim/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}