Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-socket / default.nix
blob9a420c1a0986d744ee924139f76b3af92164431b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pytest
6 , pythonOlder
7 , setuptoolsBuildHook
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-socket";
12   version = "0.7.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "miketheman";
19     repo = "pytest-socket";
20     rev = "refs/tags/${version}";
21     hash = "sha256-19YF3q85maCVdVg2HOOPbN45RNjBf6kiFAhLut8B2tQ=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   buildInputs = [
29     pytest
30   ];
32   # pytest-socket require network for majority of tests
33   doCheck = false;
35   pythonImportsCheck = [
36     "pytest_socket"
37   ];
39   meta = with lib; {
40     description = "Pytest Plugin to disable socket calls during tests";
41     homepage = "https://github.com/miketheman/pytest-socket";
42     changelog = "https://github.com/miketheman/pytest-socket/blob/${version}/CHANGELOG.md";
43     license = licenses.mit;
44     maintainers = with maintainers; [ ];
45   };