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