pythonPackages.parsel: refactor move to python-modules
This commit is contained in:
parent
4806ee108a
commit
0ce6ff5c01
34
pkgs/development/python-modules/parsel/default.nix
Normal file
34
pkgs/development/python-modules/parsel/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, pytestrunner
|
||||||
|
, six
|
||||||
|
, w3lib
|
||||||
|
, lxml
|
||||||
|
, cssselect
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "parsel";
|
||||||
|
version = "1.1.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0a34d1c0bj1fzb5dk5744m2ag6v3b8glk4xp0amqxdan9ldbcd97";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pytest pytestrunner ];
|
||||||
|
propagatedBuildInputs = [ six w3lib lxml cssselect ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/scrapy/parsel";
|
||||||
|
description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
|
||||||
|
license = licenses.bsd3;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3089,28 +3089,7 @@ in {
|
|||||||
|
|
||||||
paramz = callPackage ../development/python-modules/paramz { };
|
paramz = callPackage ../development/python-modules/paramz { };
|
||||||
|
|
||||||
parsel = buildPythonPackage rec {
|
parsel = callPackage ../development/python-modules/parsel { };
|
||||||
name = "parsel-${version}";
|
|
||||||
version = "1.1.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/parsel/${name}.tar.gz";
|
|
||||||
sha256 = "0a34d1c0bj1fzb5dk5744m2ag6v3b8glk4xp0amqxdan9ldbcd97";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest pytestrunner ];
|
|
||||||
propagatedBuildInputs = with self; [ six w3lib lxml cssselect ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://github.com/scrapy/parsel";
|
|
||||||
description = "Parsel is a library to extract data from HTML and XML using XPath and CSS selectors";
|
|
||||||
license = licenses.bsd3;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
parso = callPackage ../development/python-modules/parso { };
|
parso = callPackage ../development/python-modules/parso { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user