Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / soupsieve / default.nix
blob22d1926d8bb4ef90e0b73941da4f888a4029892f
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytest
5 , beautifulsoup4
6 , isPy3k
7 , backports_functools_lru_cache
8 }:
10 buildPythonPackage rec {
11   pname = "soupsieve";
12   version = "2.0.1";
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "a59dc181727e95d25f781f0eb4fd1825ff45590ec8ff49eadfd7f1a537cc0232";
17   };
19   checkPhase = ''
20     py.test
21   '';
23   checkInputs = [ pytest beautifulsoup4 ];
25   propagatedBuildInputs = lib.optional (!isPy3k) backports_functools_lru_cache;
27   # Circular test dependency on beautifulsoup4
28   doCheck = false;
30   meta = {
31     description = "A CSS4 selector implementation for Beautiful Soup";
32     license = lib.licenses.mit;
33     homepage = "https://github.com/facelessuser/soupsieve";
34   };