9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
36 lines
725 B
Nix
36 lines
725 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, beautifulsoup4
|
|
, isPy3k
|
|
, backports_functools_lru_cache
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "soupsieve";
|
|
version = "2.2.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "052774848f448cf19c7e959adf5566904d525f33a3f8b6ba6f6f8f26ec7de0cc";
|
|
};
|
|
|
|
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";
|
|
};
|
|
|
|
}
|