tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.pytest-spec: init at unstable-2023-06-04
TomaSajt
2 years ago
71affb0d
371426a4
+52
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
pytest-spec
default.nix
top-level
python-packages.nix
+50
pkgs/development/python-modules/pytest-spec/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, poetry-core
5
5
+
, pytest
6
6
+
, pytestCheckHook
7
7
+
, pytest-describe
8
8
+
, pytest-cov
9
9
+
}:
10
10
+
11
11
+
buildPythonPackage rec {
12
12
+
pname = "pytest-spec";
13
13
+
version = "unstable-2023-06-04";
14
14
+
pyproject = true;
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "pchomik";
18
18
+
repo = "pytest-spec";
19
19
+
rev = "e16e0550dd6bc557411e4312b7b42d53b26e69ef";
20
20
+
hash = "sha256-dyDUdZJU4E4y1yCzunAX2c48Qv6ogu0b60U/5YbJvIU=";
21
21
+
};
22
22
+
23
23
+
postPatch = ''
24
24
+
sed -i '/addopts/d' setup.cfg
25
25
+
# TODO: upstream
26
26
+
substituteInPlace pyproject.toml \
27
27
+
--replace "poetry>=0.12" "poetry-core" \
28
28
+
--replace "poetry.masonry.api" "poetry.core.masonry.api"
29
29
+
'';
30
30
+
31
31
+
nativeBuildInputs = [ poetry-core ];
32
32
+
33
33
+
buildInputs = [ pytest ];
34
34
+
35
35
+
nativeCheckInputs = [
36
36
+
pytestCheckHook
37
37
+
pytest-describe
38
38
+
];
39
39
+
40
40
+
pytestFlagsArray = [ "--spec" ];
41
41
+
42
42
+
pythonImportsCheck = [ "pytest_spec" ];
43
43
+
44
44
+
meta = {
45
45
+
description = "A pytest plugin to display test execution output like a SPECIFICATION";
46
46
+
homepage = "https://github.com/pchomik/pytest-spec";
47
47
+
license = lib.licenses.gpl2Plus;
48
48
+
maintainers = with lib.maintainers; [ tomasajt ];
49
49
+
};
50
50
+
}
+2
pkgs/top-level/python-packages.nix
···
10417
10417
10418
10418
pytest-shutil = callPackage ../development/python-modules/pytest-shutil { };
10419
10419
10420
10420
+
pytest-spec = callPackage ../development/python-modules/pytest-spec { };
10421
10421
+
10420
10422
python-status = callPackage ../development/python-modules/python-status { };
10421
10423
10422
10424
python-string-utils = callPackage ../development/python-modules/python-string-utils { };