2019-02-14 10:07:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, beautifulsoup4
|
|
|
|
, isPy3k
|
|
|
|
, backports_functools_lru_cache
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "soupsieve";
|
2021-03-24 09:28:28 +00:00
|
|
|
version = "2.2.1";
|
2019-02-14 10:07:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:28 +00:00
|
|
|
sha256 = "052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc";
|
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 01:11:51 +00:00
|
|
|
homepage = "https://github.com/facelessuser/soupsieve";
|
2019-02-14 10:07:35 +00:00
|
|
|
};
|
|
|
|
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|