1{ fetchPypi, buildPythonPackage, lib
2, requests, beautifulsoup4, six, lxml
3, pytestrunner, requests-mock, pytestcov, pytest
4}:
5
6buildPythonPackage rec {
7 pname = "MechanicalSoup";
8 version = "0.10.0";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "22423efd025c3eedb06f41d3ff1127174a59f40dc560e82dce143956976195bf";
13 };
14
15 checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
16
17 propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
18
19 # Requires network
20 doCheck = false;
21
22 postPatch = ''
23 # Is in setup_requires but not used in setup.py...
24 substituteInPlace setup.py --replace "'pytest-runner'" ""
25 '';
26
27 meta = with lib; {
28 description = "A Python library for automating interaction with websites";
29 homepage = https://github.com/hickford/MechanicalSoup;
30 license = licenses.mit;
31 maintainers = [ maintainers.jgillich ];
32 };
33}