nixpkgs/pkgs/development/python-modules/pytest-console-scripts/default.nix
Emily af2b4c56fd treewide: retire late maintainer AluisioASG
I’ve sadly become aware that Aluísio Augusto Silva Gonçalves
(@AluisioASG), a contributor to Nixpkgs until 2021, tragically
[passed away that year] at the age of only 25 from complications
caused by COVID‐19.

[passed away that year]: https://ufpr.br/ufpr-lamenta-a-morte-do-estudante-aluisio-augusto-silva-goncalves-25-anos/

It doesn’t feel respectful of this loss to have a bot ping his
account every time Iosevka gets an update, or to have people expect
reviews or support for the packages he maintained, so let’s retire
his maintainer list entry.

I’ll adopt ffmpeg-python in my concurrent pull request, but there are
a lot of other packages that could use new maintainers. I encourage
people to consider continuing his work on Nixpkgs if any of them are
of interest.

On the off chance that any of his family or friends ever see this
message, I wish I could say more than that I’m sorry for your loss.
2024-08-04 02:50:54 +01:00

52 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
mock,
fetchPypi,
pytestCheckHook,
python,
pythonOlder,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "pytest-console-scripts";
version = "1.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-WoJu2EzAr6IC655EOB19di973ajgwj+feafx9Ez0qJU=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ setuptools ];
nativeCheckInputs = [
mock
pytestCheckHook
];
postPatch = ''
# Patch the shebang of a script generated during test.
substituteInPlace tests/test_run_scripts.py \
--replace "#!/usr/bin/env python" "#!${python.interpreter}"
'';
pythonImportsCheck = [ "pytest_console_scripts" ];
meta = with lib; {
description = "Pytest plugin for testing console scripts";
longDescription = ''
Pytest-console-scripts is a pytest plugin for running python scripts from within tests.
It's quite similar to subprocess.run(), but it also has an in-process mode, where the scripts are executed by the interpreter that's running pytest (using some amount of sandboxing).
'';
homepage = "https://github.com/kvas-it/pytest-console-scripts";
license = licenses.mit;
maintainers = [ ];
};
}