Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
863 B · 45 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytest, pythonOlder, setuptoolsBuildHook}:
buildPythonPackage rec { pname = "pytest-socket"; version = "0.6.0"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "miketheman"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-RPHpqknjpuAMXYg4nFOtLp8CXh10/w0RuO/bseTBN5o="; };
nativeBuildInputs = [ poetry-core ];
buildInputs = [ pytest ];
# pytest-socket require network for majority of tests doCheck = false;
pythonImportsCheck = [ "pytest_socket" ];
meta = with lib; { description = "Pytest Plugin to disable socket calls during tests"; homepage = "https://github.com/miketheman/pytest-socket"; license = licenses.mit; maintainers = with maintainers; [ costrouc ]; };}