My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pytest-socket/default.nix

45 lines
848 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytest
, pythonOlder
, setuptoolsBuildHook
}:
buildPythonPackage rec {
pname = "pytest-socket";
version = "0.5.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "miketheman";
repo = pname;
rev = version;
hash = "sha256-QKHnuq2pqWMVUhF9nnhJggEK6SSyp6zBEfQX9tGND2E=";
};
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 ];
};
}