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