1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, psutil
, pylibmc
, pytest
, pytestCheckHook
, pythonOlder
, requests
, setuptools
, setuptools-scm
, toml
, mysqlclient
, zc-lockfile
}:
buildPythonPackage rec {
pname = "pytest-services";
version = "2.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pytest-dev";
repo = "pytest-services";
rev = "refs/tags/${version}";
hash = "sha256-E/VcKcAb1ekypm5jP4lsSz1LYJTcTSed6i5OY5ihP30=";
};
patches = [
# Replace distutils.spawn.find_executable with shutil.which, https://github.com/pytest-dev/pytest-services/pull/46
(fetchpatch {
name = "replace-distutils.patch";
url = "https://github.com/pytest-dev/pytest-services/commit/e0e2a85434a2dcbcc0584299c5b2b751efe0b6db.patch";
hash = "sha256-hvr7EedfjfonHDn6v2slwUBqz1xQoF7Ez/kqAhZRXEc=";
})
];
nativeBuildInputs = [
setuptools-scm
toml
];
buildInputs = [ pytest ];
propagatedBuildInputs = [
requests
psutil
zc-lockfile
];
nativeCheckInputs = [
mysqlclient
pylibmc
pytestCheckHook
];
pythonImportsCheck = [
"pytest_services"
];
disabledTests = [
# Tests require binaries and additional parts
"test_memcached"
"test_mysql"
"test_xvfb "
];
meta = with lib; {
description = "Services plugin for pytest testing framework";
homepage = "https://github.com/pytest-dev/pytest-services";
changelog = "https://github.com/pytest-dev/pytest-services/blob/${version}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}
|