nixpkgs/pkgs/development/python-modules/pytest-localserver/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

41 lines
893 B
Nix

{ lib
, aiosmtpd
, buildPythonPackage
, fetchPypi
, werkzeug
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-localserver";
version = "0.7.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-53tGVVy0OJMdIZxUvPn1lTwEB9ZFQ2pgK1cwur/T/js=";
};
propagatedBuildInputs = [
aiosmtpd
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://github.com/pytest-dev/pytest-localserver";
changelog = "https://github.com/pytest-dev/pytest-localserver/blob/v${version}/CHANGES";
license = licenses.mit;
maintainers = with maintainers; [ siriobalmelli ];
};
}