pythonPackages.mechanize: refactor move to python-modules
This commit is contained in:
parent
5ec1bfa7fc
commit
1308d1108a
28
pkgs/development/python-modules/mechanize/default.nix
Normal file
28
pkgs/development/python-modules/mechanize/default.nix
Normal 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";
|
||||
};
|
||||
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user