1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, beautifulsoup4
6, isPy3k
7, backports_functools_lru_cache
8}:
9
10buildPythonPackage rec {
11 pname = "soupsieve";
12 version = "1.7.3";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "87db12ae79194f0ff9808d2b1641c4f031ae39ffa3cab6b907ea7c1e5e5ed445";
17 };
18
19 checkPhase = ''
20 py.test
21 '';
22
23 checkInputs = [ pytest beautifulsoup4 ];
24
25 propagatedBuildInputs = lib.optional (!isPy3k) backports_functools_lru_cache;
26
27 # Circular test dependency on beautifulsoup4
28 doCheck = false;
29
30 meta = {
31 description = "A CSS4 selector implementation for Beautiful Soup";
32 license = lib.licenses.mit;
33 homepage = https://github.com/facelessuser/soupsieve;
34 };
35
36}