2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, beautifulsoup4
|
|
|
|
, isPy3k
|
|
|
|
, backports_functools_lru_cache
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "soupsieve";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "a59dc181727e95d25f781f0eb4fd1825ff45590ec8ff49eadfd7f1a537cc0232";
|
2020-04-24 23:36:52 +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;
|
|
|
|
homepage = "https://github.com/facelessuser/soupsieve";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|