pythonPackages.mechanize: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-15 17:47:59 -04:00 committed by Frederik Rietdijk
parent 5ec1bfa7fc
commit 1308d1108a
2 changed files with 29 additions and 21 deletions

View File

@ -0,0 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, html5lib
, isPy3k
}:
buildPythonPackage rec {
pname = "mechanize";
version = "0.3.5";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0rki9nl4y42q694parafcsdcdqvkdjckrbg6n0691302lfsrkyfl";
};
propagatedBuildInputs = [ html5lib ];
doCheck = false;
meta = with stdenv.lib; {
description = "Stateful programmatic web browsing in Python";
homepage = http://wwwsearch.sourceforge.net/;
license = "BSD-style";
};
}

View File

@ -5829,27 +5829,7 @@ in {
mccabe = callPackage ../development/python-modules/mccabe { };
mechanize = buildPythonPackage (rec {
name = "mechanize-0.3.5";
disabled = isPy3k;
src = pkgs.fetchurl {
url = "mirror://pypi/m/mechanize/${name}.tar.gz";
sha256 = "0rki9nl4y42q694parafcsdcdqvkdjckrbg6n0691302lfsrkyfl";
};
propagatedBuildInputs = with self; [ html5lib ];
doCheck = false;
meta = {
description = "Stateful programmatic web browsing in Python";
homepage = http://wwwsearch.sourceforge.net/;
license = "BSD-style";
};
});
mechanize = callPackage ../development/python-modules/mechanize { };
MechanicalSoup = callPackage ../development/python-modules/MechanicalSoup { };