nixpkgs/pkgs/development/python-modules/MechanicalSoup/default.nix

34 lines
889 B
Nix
Raw Normal View History

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