2017-10-02 00:12:33 +01:00
|
|
|
{ fetchPypi, buildPythonPackage, lib
|
2017-12-30 11:24:38 +00:00
|
|
|
, requests, beautifulsoup4, six, lxml
|
2017-10-25 19:04:35 +01:00
|
|
|
, pytestrunner, requests-mock, pytestcov, pytest
|
|
|
|
}:
|
2017-10-02 00:12:33 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MechanicalSoup";
|
2021-01-18 00:55:13 +00:00
|
|
|
version = "1.0.0";
|
2017-10-02 00:12:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-18 00:55:13 +00:00
|
|
|
sha256 = "37d3b15c1957917d3ae171561e77f4dd4c08c35eb4500b8781f6e7e1bb6c4d07";
|
2017-10-02 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
|
|
|
|
|
2017-12-30 11:24:38 +00:00
|
|
|
propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
|
2017-10-02 00:12:33 +01:00
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Is in setup_requires but not used in setup.py...
|
2017-12-30 11:24:38 +00:00
|
|
|
substituteInPlace setup.py --replace "'pytest-runner'" ""
|
2017-10-25 19:04:35 +01:00
|
|
|
'';
|
|
|
|
|
2017-10-02 00:12:33 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library for automating interaction with websites";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hickford/MechanicalSoup";
|
2017-10-02 00:12:33 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.jgillich ];
|
|
|
|
};
|
|
|
|
}
|