tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nose2pytest: init at 1.0.12
Emily
2 years ago
cb973365
c71dc054
+66
3 changed files
expand all
collapse all
unified
split
pkgs
by-name
no
nose2pytest
package.nix
development
python-modules
nose2pytest
default.nix
top-level
python-packages.nix
+3
pkgs/by-name/no/nose2pytest/package.nix
···
1
1
+
{ python3Packages }:
2
2
+
3
3
+
python3Packages.toPythonApplication python3Packages.nose2pytest
+61
pkgs/development/python-modules/nose2pytest/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
fetchpatch2,
6
6
+
setuptools,
7
7
+
fissix,
8
8
+
pytestCheckHook,
9
9
+
nose,
10
10
+
}:
11
11
+
12
12
+
let
13
13
+
version = "1.0.12";
14
14
+
in
15
15
+
16
16
+
buildPythonPackage {
17
17
+
pname = "nose2pytest";
18
18
+
inherit version;
19
19
+
pyproject = true;
20
20
+
21
21
+
src = fetchFromGitHub {
22
22
+
owner = "pytest-dev";
23
23
+
repo = "nose2pytest";
24
24
+
rev = "v${version}";
25
25
+
hash = "sha256-BYyj2ZOZvWBpmzQACpmxAzCdQhlZlDYt+HLMdft+wYY=";
26
26
+
};
27
27
+
28
28
+
patches = [
29
29
+
# Drop Python 3.6 and 3.7 support
30
30
+
#
31
31
+
# Relaxes the runtime check for Python < 3.12.
32
32
+
(fetchpatch2 {
33
33
+
url = "https://github.com/pytest-dev/nose2pytest/commit/75ff506aaf11b5e20672441730657ee7540387e1.patch?full_index=1";
34
34
+
hash = "sha256-BpazrsB4b1oMBx9OemdVxhj/Jqbc8RKv2GC6gqkdGK8=";
35
35
+
})
36
36
+
];
37
37
+
38
38
+
build-system = [ setuptools ];
39
39
+
40
40
+
dependencies = [ fissix ];
41
41
+
42
42
+
nativeCheckInputs = [
43
43
+
pytestCheckHook
44
44
+
nose
45
45
+
];
46
46
+
47
47
+
preCheck = ''
48
48
+
export HOME=$(mktemp -d)
49
49
+
'';
50
50
+
51
51
+
pythonImportsCheck = [ "nose2pytest.assert_tools" ];
52
52
+
53
53
+
meta = {
54
54
+
description = "Scripts to convert Python Nose tests to PyTest";
55
55
+
homepage = "https://github.com/pytest-dev/nose2pytest";
56
56
+
sourceProvenance = [ lib.sourceTypes.fromSource ];
57
57
+
license = lib.licenses.bsd3;
58
58
+
maintainers = [ lib.maintainers.emily ];
59
59
+
mainProgram = "nose2pytest";
60
60
+
};
61
61
+
}
+2
pkgs/top-level/python-packages.nix
···
9120
9120
9121
9121
nose2 = callPackage ../development/python-modules/nose2 { };
9122
9122
9123
9123
+
nose2pytest = callPackage ../development/python-modules/nose2pytest { };
9124
9124
+
9123
9125
nose3 = callPackage ../development/python-modules/nose3 { };
9124
9126
9125
9127
nose-timer = callPackage ../development/python-modules/nose-timer { };