depot/third_party/nixpkgs/pkgs/development/python-modules/pyngrok/default.nix

35 lines
736 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools,
pyyaml,
}:
buildPythonPackage rec {
pname = "pyngrok";
version = "7.2.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-UJIbCcsQzKmFeH8gvfxFVN4ovT7eCnSHBsCCooInm/E=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ pyyaml ];
pythonImportsCheck = [ "pyngrok" ];
meta = with lib; {
description = "Python wrapper for ngrok";
homepage = "https://github.com/alexdlaird/pyngrok";
changelog = "https://github.com/alexdlaird/pyngrok/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
};
}