3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #36778 from Ma27/fix-htmltreediff

pythonPackages.htmltreediff: fix build
This commit is contained in:
Frederik Rietdijk 2018-03-11 08:35:02 +01:00 committed by GitHub
commit 12a8276649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 24 deletions

View file

@ -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 ];
};
}

View file

@ -20389,30 +20389,7 @@ EOF
};
};
htmltreediff = buildPythonPackage rec{
version = "0.1.2";
pname = "htmltreediff";
name = pname + "-${version}";
# Does not work with Py >= 3
disabled = !isPy27;
src = pkgs.fetchFromGitHub {
owner = "christian-oudard";
repo = pname;
rev = "v" + version;
sha256 = "16mqp2jyznrw1mgd3qzybq28h2k5wz7vmmz1m6xpgscazyjhvvd1";
};
propagatedBuildInputs = with self; [ lxml html5lib ];
meta = {
description = " Structure-aware diff for html and xml documents";
homepage = https://github.com/christian-oudard/htmltreediff;
license = licenses.bsdOriginal;
maintainers = with maintainers; [];
};
};
htmltreediff = callPackage ../development/python-modules/htmltreediff { };
repeated_test = buildPythonPackage rec {
name = "repeated_test-${version}";