tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.travispy: init at 0.3.5
jamiemagee.tngl.sh
7 months ago
86099544
3810fed9
+58
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
travispy
default.nix
top-level
python-packages.nix
+56
pkgs/development/python-modules/travispy/default.nix
reviewed
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
setuptools,
6
6
+
requests,
7
7
+
pytestCheckHook,
8
8
+
pytest-rerunfailures,
9
9
+
}:
10
10
+
11
11
+
buildPythonPackage rec {
12
12
+
pname = "travispy";
13
13
+
version = "0.3.5";
14
14
+
pyproject = true;
15
15
+
16
16
+
src = fetchFromGitHub {
17
17
+
owner = "menegazzo";
18
18
+
repo = "travispy";
19
19
+
tag = "v${version}";
20
20
+
hash = "sha256-jYuRaKtoWaWq6QWinXnuBfqanTCMibouwwWHfcmioGo=";
21
21
+
};
22
22
+
23
23
+
postPatch = ''
24
24
+
# Fix deprecated pytest configuration
25
25
+
substituteInPlace setup.cfg \
26
26
+
--replace-fail "[pytest]" "[tool:pytest]"
27
27
+
'';
28
28
+
29
29
+
build-system = [ setuptools ];
30
30
+
31
31
+
dependencies = [ requests ];
32
32
+
33
33
+
nativeCheckInputs = [
34
34
+
pytestCheckHook
35
35
+
pytest-rerunfailures
36
36
+
];
37
37
+
38
38
+
tests = [
39
39
+
"travispy/_tests/"
40
40
+
];
41
41
+
42
42
+
# Skip tests that require network access
43
43
+
disabledTests = [
44
44
+
"test_not_authenticated"
45
45
+
];
46
46
+
47
47
+
pythonImportsCheck = [ "travispy" ];
48
48
+
49
49
+
meta = {
50
50
+
description = "Python API for Travis CI";
51
51
+
homepage = "https://github.com/menegazzo/travispy";
52
52
+
changelog = "https://github.com/menegazzo/travispy/releases/tag/v${version}";
53
53
+
license = lib.licenses.gpl3Only;
54
54
+
maintainers = [ lib.maintainers.jamiemagee ];
55
55
+
};
56
56
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
18445
18445
18446
18446
transmission-rpc = callPackage ../development/python-modules/transmission-rpc { };
18447
18447
18448
18448
+
travispy = callPackage ../development/python-modules/travispy { };
18449
18449
+
18448
18450
trectools = callPackage ../development/python-modules/trectools { };
18449
18451
18450
18452
tree-sitter = callPackage ../development/python-modules/tree-sitter { };