2019-02-14 10:07:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, beautifulsoup4
|
|
|
|
, isPy3k
|
|
|
|
, backports_functools_lru_cache
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "soupsieve";
|
2019-11-11 11:13:41 +00:00
|
|
|
version = "1.9.5";
|
2019-02-14 10:07:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 11:13:41 +00:00
|
|
|
sha256 = "e2c1c5dee4a1c36bcb790e0fabd5492d874b8ebd4617622c4f6a731701060dda";
|
2019-02-14 10:07:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ pytest beautifulsoup4 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) backports_functools_lru_cache;
|
|
|
|
|
|
|
|
# Circular test dependency on beautifulsoup4
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A CSS4 selector implementation for Beautiful Soup";
|
|
|
|
license = lib.licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/facelessuser/soupsieve";
|
2019-02-14 10:07:35 +00:00
|
|
|
};
|
|
|
|
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|