forked from mirrors/nixpkgs
Merge pull request #36778 from Ma27/fix-htmltreediff
pythonPackages.htmltreediff: fix build
This commit is contained in:
commit
12a8276649
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal file
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue