10 buildPythonPackage rec {
11 pname = "pytest-socket";
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
19 repo = "pytest-socket";
20 rev = "refs/tags/${version}";
21 hash = "sha256-19YF3q85maCVdVg2HOOPbN45RNjBf6kiFAhLut8B2tQ=";
24 nativeBuildInputs = [ poetry-core ];
26 buildInputs = [ pytest ];
28 # pytest-socket require network for majority of tests
31 pythonImportsCheck = [ "pytest_socket" ];
34 description = "Pytest Plugin to disable socket calls during tests";
35 homepage = "https://github.com/miketheman/pytest-socket";
36 changelog = "https://github.com/miketheman/pytest-socket/blob/${version}/CHANGELOG.md";
37 license = licenses.mit;