1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 httpx,
6 lxml,
7 pyparsing,
8 pytestCheckHook,
9 pythonOlder,
10 pythonRelaxDepsHook,
11 quixote,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "twill";
17 version = "3.2.4";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-YlZKvOGxLWwGh+MqCXf8tfruxLK60H73k1VQhGOSTc8=";
25 };
26
27 pythonRelaxDeps = [ "lxml" ];
28
29 build-system = [ setuptools ];
30
31 nativeBuildInputs = [ pythonRelaxDepsHook ];
32
33 dependencies = [
34 httpx
35 lxml
36 pyparsing
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 quixote
42 ];
43
44 disabledTestPaths = [
45 # pytidylib is abandoned
46 "tests/test_tidy.py"
47 ];
48
49 pythonImportsCheck = [ "twill" ];
50
51 meta = with lib; {
52 description = "A simple scripting language for Web browsing";
53 homepage = "https://twill-tools.github.io/twill/";
54 changelog = "https://github.com/twill-tools/twill/releases/tag/v${version}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ mic92 ];
57 };
58}