mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
163e7a0663
All package tests rely on networking which breaks sandboxed builds. Fall back to pythonImportsCheck instead. Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
30 lines
706 B
Nix
30 lines
706 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchPypi
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-localserver";
|
|
version = "0.5.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3a5427909d1dfda10772c1bae4b9803679c0a8f04adb66c338ac607773bfefc2";
|
|
};
|
|
|
|
propagatedBuildInputs = [ werkzeug ];
|
|
|
|
# all tests access network: does not work in sandbox
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "pytest_localserver" ];
|
|
|
|
meta = with lib; {
|
|
description = "Plugin for the pytest testing framework to test server connections locally";
|
|
homepage = "https://pypi.python.org/pypi/pytest-localserver";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|
|
|