summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexchen <hexchen@lilwit.ch>2023-11-08 13:11:59 +0000
committerhexchen <hexchen@lilwit.ch>2023-11-08 16:51:33 +0000
commitd0ca316cd5229a634e1e2f99dee989793cf0fcc8 (patch)
tree5b374c51b5bcf49736a2f764c949731766cf97d9
parent65b0fd2beec78a192e0dc79ddbfb903165cb8d99 (diff)
downloadnixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar.gz
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar.bz2
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar.lz
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar.xz
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.tar.zst
nixpkgs-d0ca316cd5229a634e1e2f99dee989793cf0fcc8.zip
python311Packages.htmllistparse: init at 0.6.1
-rw-r--r--pkgs/development/python-modules/htmllistparse/default.nix37
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/htmllistparse/default.nix b/pkgs/development/python-modules/htmllistparse/default.nix
new file mode 100644
index 00000000000..ae13f6585a1
--- /dev/null
+++ b/pkgs/development/python-modules/htmllistparse/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools
+, beautifulsoup4
+, html5lib
+, requests
+, fusepy
+}:
+
+buildPythonPackage rec {
+  pname = "htmllistparse";
+  version = "0.6.1";
+  pyproject = true;
+
+  src = fetchPypi {
+    inherit pname version;
+    hash = "sha256-bcimvwPIQ7nTJYQ6JqI1GnlbVzzZKiybgnFiEBnGQII=";
+  };
+
+  nativeBuildInputs = [ setuptools ];
+  propagatedBuildInputs = [ beautifulsoup4 html5lib requests fusepy ];
+
+  # upstream has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "htmllistparse"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/gumblex/htmllisting-parser";
+    description = "Python parser for Apache/nginx-style HTML directory listing";
+    license = licenses.mit;
+    maintainers = with maintainers; [ hexchen ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index ad4748773e0..43f3091dfd1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -5092,6 +5092,8 @@ self: super: with self; {
 
   htmllaundry = callPackage ../development/python-modules/htmllaundry { };
 
+  htmllistparse = callPackage ../development/python-modules/htmllistparse { };
+
   htmlmin = callPackage ../development/python-modules/htmlmin { };
 
   html-sanitizer = callPackage ../development/python-modules/html-sanitizer { };