2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-07 05:23:16 +00:00
nixpkgs/pkgs/development/python-modules/soupsieve/default.nix

37 lines
725 B
Nix
Raw Normal View History

2019-02-14 10:07:35 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, beautifulsoup4
, isPy3k
, backports_functools_lru_cache
}:
buildPythonPackage rec {
pname = "soupsieve";
2020-06-05 17:44:37 +00:00
version = "1.9.6";
2019-02-14 10:07:35 +00:00
src = fetchPypi {
inherit pname version;
2020-06-05 17:44:37 +00:00
sha256 = "7985bacc98c34923a439967c1a602dc4f1e15f923b6fcf02344184f86cc7efaa";
2019-02-14 10:07:35 +00:00
};
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";
2019-02-14 10:07:35 +00:00
};
}