1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/parsel/default.nix

36 lines
676 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, pytestrunner
, functools32
, six
, w3lib
, lxml
, cssselect
}:
buildPythonPackage rec {
pname = "parsel";
2018-11-04 10:35:08 +00:00
version = "1.5.1";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:08 +00:00
sha256 = "9ccd82b8a122345601f6f9209e972c0e8c3518a188fcff2d37cb4d7bc570b4b8";
};
buildInputs = [ pytest pytestrunner ];
propagatedBuildInputs = [ functools32 six w3lib lxml cssselect ];
checkPhase = ''
py.test
'';
meta = with 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;
};
}