Files
Victor Engmark c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01:00

51 lines
895 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
colorama,
coverage,
unidecode,
lxml,
}:
buildPythonPackage rec {
pname = "green";
version = "4.0.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-pAZ8P5/CpkTtNfU2ZJUGQzROxGLm0uu1vXS3YpcVprE=";
};
patches = [ ./tests.patch ];
postPatch = ''
substituteInPlace green/test/test_integration.py \
--subst-var-by green "$out/bin/green"
'';
propagatedBuildInputs = [
colorama
coverage
unidecode
lxml
];
# let green run it's own test suite
checkPhase = ''
$out/bin/green -tvvv \
green.test.test_version \
green.test.test_cmdline
'';
pythonImportsCheck = [ "green" ];
meta = {
description = "Python test runner";
homepage = "https://github.com/CleanCut/green";
license = lib.licenses.mit;
maintainers = [ ];
};
}