nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 termcolor,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-sugar";
12 version = "1.1.1";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-c7i2UWPr8Q+fZx76ue7T1W8g0spovag/pkdAqSwI9l0=";
18 };
19
20 postPatch = ''
21 # pytest 9 compat
22 substituteInPlace test_sugar.py \
23 --replace-fail "startdir" "start_path"
24 '';
25
26 build-system = [
27 setuptools
28 ];
29
30 dependencies = [
31 termcolor
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 meta = {
37 description = "Plugin that changes the default look and feel of pytest";
38 homepage = "https://github.com/Frozenball/pytest-sugar";
39 changelog = "https://github.com/Teemu/pytest-sugar/releases/tag/v${version}";
40 license = lib.licenses.bsd3;
41 maintainers = [ ];
42 };
43}