about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/twill/default.nix
blob: f15a45509e58bb30950767b1ac36316596e37ec3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, lxml
, requests
, pyparsing
, pythonOlder
}:

buildPythonPackage rec {
  pname = "twill";
  version = "3.2.1";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-JJheUl/Ar8BWNpzJzMvVgk4KeitoQZ8GjbFPN9dEd+g=";
  };

  propagatedBuildInputs = [
    lxml
    requests
    pyparsing
  ];

  pythonImportsCheck = [
    "twill"
  ];

  # pypi package comes without tests, other homepage does not provide all verisons
  doCheck = false;

  meta = with lib; {
    description = "A simple scripting language for Web browsing";
    homepage = "https://twill-tools.github.io/twill/";
    license = licenses.mit;
    maintainers = with maintainers; [ mic92 ];
  };
}