1{ lib
2, buildPythonPackage
3, fetchPypi
4, lxml
5, requests
6, pyparsing
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "twill";
12 version = "3.0.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-dWtrdkiR1+IBfeF9jwbOjKE2UMXDJji0iOb+USbY7zk=";
20 };
21
22 propagatedBuildInputs = [
23 lxml
24 requests
25 pyparsing
26 ];
27
28 pythonImportsCheck = [
29 "twill"
30 ];
31
32 # pypi package comes without tests, other homepage does not provide all verisons
33 doCheck = false;
34
35 meta = with lib; {
36 description = "A simple scripting language for Web browsing";
37 homepage = "https://twill-tools.github.io/twill/";
38 license = licenses.mit;
39 maintainers = with maintainers; [ mic92 ];
40 };
41}