python2.pkgs.soupsieve: keep 1.9.6 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-11 12:07:46 +02:00
parent 28a1fffbec
commit 1a012f3fa7
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, beautifulsoup4
, isPy3k
, backports_functools_lru_cache
}:
buildPythonPackage rec {
pname = "soupsieve";
version = "1.9.6";
src = fetchPypi {
inherit pname version;
sha256 = "7985bacc98c34923a439967c1a602dc4f1e15f923b6fcf02344184f86cc7efaa";
};
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";
};
}

View File

@ -6349,7 +6349,10 @@ in {
sorl_thumbnail = callPackage ../development/python-modules/sorl_thumbnail { };
soupsieve = callPackage ../development/python-modules/soupsieve { };
soupsieve = if isPy3k then
callPackage ../development/python-modules/soupsieve { }
else
callPackage ../development/python-modules/soupsieve/1.nix { };
sphinx_rtd_theme = callPackage ../development/python-modules/sphinx_rtd_theme { };