python2.pkgs.soupsieve: keep 1.9.6 for python 2
This commit is contained in:
parent
28a1fffbec
commit
1a012f3fa7
36
pkgs/development/python-modules/soupsieve/1.nix
Normal file
36
pkgs/development/python-modules/soupsieve/1.nix
Normal 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";
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -6349,7 +6349,10 @@ in {
|
|||||||
|
|
||||||
sorl_thumbnail = callPackage ../development/python-modules/sorl_thumbnail { };
|
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 { };
|
sphinx_rtd_theme = callPackage ../development/python-modules/sphinx_rtd_theme { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user