aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/soupsieve/1.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/soupsieve/1.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/soupsieve/1.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/soupsieve/1.nix b/nixpkgs/pkgs/development/python-modules/soupsieve/1.nix
new file mode 100644
index 00000000000..bb5ecbc839c
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/soupsieve/1.nix
@@ -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";
+ };
+
+}