2017-10-02 00:12:33 +01:00
|
|
|
{ fetchPypi, buildPythonPackage, lib
|
2017-10-25 19:04:35 +01:00
|
|
|
, requests, beautifulsoup4, six
|
|
|
|
, pytestrunner, requests-mock, pytestcov, pytest
|
|
|
|
}:
|
2017-10-02 00:12:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "MechanicalSoup";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "0.8.0";
|
2017-10-02 00:12:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "38a6ca35428196be94f87f8f036ee4a88b1418d1f77e5634ad92acfaa22c28da";
|
2017-10-02 00:12:33 +01:00
|
|
|
};
|
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
|
|
|
|
|
2017-10-02 00:12:33 +01:00
|
|
|
propagatedBuildInputs = [ requests beautifulsoup4 six ];
|
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
# Requires network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Is in setup_requires but not used in setup.py...
|
|
|
|
substituteInPlace setup.py --replace "'pytest-runner'," ""
|
|
|
|
'';
|
|
|
|
|
2017-10-02 00:12:33 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|