linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / MechanicalSoup / default.nix
blobe4ce48158f64267b2240af4d54204166aaf7a61c
1 { fetchPypi, buildPythonPackage, lib
2 , requests, beautifulsoup4, six, lxml
3 , pytestrunner, requests-mock, pytestcov, pytest
4 }:
6 buildPythonPackage rec {
7   pname = "MechanicalSoup";
8   version = "1.0.0";
10   src = fetchPypi {
11     inherit pname version;
12     sha256 = "37d3b15c1957917d3ae171561e77f4dd4c08c35eb4500b8781f6e7e1bb6c4d07";
13   };
15   checkInputs = [ pytest pytestrunner requests-mock pytestcov ];
17   propagatedBuildInputs = [ lxml requests beautifulsoup4 six ];
19   # Requires network
20   doCheck = false;
22   postPatch = ''
23     # Is in setup_requires but not used in setup.py...
24     substituteInPlace setup.py --replace "'pytest-runner'" ""
25   '';
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   };