depot/third_party/nixpkgs/pkgs/development/python-modules/twill/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

56 lines
987 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
httpx,
lxml,
pyparsing,
pytestCheckHook,
pythonOlder,
quixote,
setuptools,
}:
buildPythonPackage rec {
pname = "twill";
version = "3.2.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-/WIcM/zQ2UjGlGiJRYg9iTCQayzisxGBa5P0/2FDK2Q=";
};
pythonRelaxDeps = [ "lxml" ];
build-system = [ setuptools ];
dependencies = [
httpx
lxml
pyparsing
];
nativeCheckInputs = [
pytestCheckHook
quixote
];
disabledTestPaths = [
# pytidylib is abandoned
"tests/test_tidy.py"
];
pythonImportsCheck = [ "twill" ];
meta = with lib; {
description = "Simple scripting language for Web browsing";
homepage = "https://twill-tools.github.io/twill/";
changelog = "https://github.com/twill-tools/twill/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ mic92 ];
};
}