summary refs log tree commit diff
path: root/pkgs/development/python-modules/htmltreediff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-03-11 00:20:17 +0100
committerMaximilian Bosch <maximilian@mbosch.me>2018-03-11 00:21:47 +0100
commit94458721a7f7fa6c8d1fb645e9d3051d18279af1 (patch)
tree4c168ab226c7bd4128dc462d70d04a7807d0fc30 /pkgs/development/python-modules/htmltreediff
parent3ab34a01e073a766002665c01a19df8f8a7ae876 (diff)
downloadnixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar.gz
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar.bz2
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar.lz
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar.xz
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.tar.zst
nixlib-94458721a7f7fa6c8d1fb645e9d3051d18279af1.zip
pythonPackages.htmltreediff: fix build
- add `pythonPackages.nose` as `checkInput` to make the tests passing
- extract expression into its own file

See https://hydra.nixos.org/build/70680974/log
See ticket #36453
Diffstat (limited to 'pkgs/development/python-modules/htmltreediff')
-rw-r--r--pkgs/development/python-modules/htmltreediff/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/htmltreediff/default.nix b/pkgs/development/python-modules/htmltreediff/default.nix
new file mode 100644
index 000000000000..5e839e4ada9b
--- /dev/null
+++ b/pkgs/development/python-modules/htmltreediff/default.nix
@@ -0,0 +1,26 @@
+{ buildPythonPackage, fetchFromGitHub, isPy3k, lxml, html5lib, nose, stdenv }:
+
+buildPythonPackage rec {
+  version = "v0.1.2";
+  pname = "htmltreediff";
+
+  disabled = isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "christian-oudard";
+    repo = pname;
+    rev = version;
+    sha256 = "16mqp2jyznrw1mgd3qzybq28h2k5wz7vmmz1m6xpgscazyjhvvd1";
+  };
+
+  propagatedBuildInputs = [ lxml html5lib ];
+
+  checkInputs = [ nose ];
+
+  meta = with stdenv.lib; {
+    description = " Structure-aware diff for html and xml documents";
+    homepage = https://github.com/christian-oudard/htmltreediff;
+    license = licenses.bsdOriginal;
+    maintainers = with maintainers; [ ma27 ];
+  };
+}