Add python-bugzilla 1.1.0.
This commit is contained in:
parent
9e4de80736
commit
e778d5dcfb
@ -0,0 +1,30 @@
|
|||||||
|
From e7ed770363e8769727a915b2390c0ce1ab2ce964 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michal Hlavinka <mhlavink@redhat.com>
|
||||||
|
Date: Wed, 18 Jun 2014 20:07:24 -0400
|
||||||
|
Subject: tests: Fix cookie comparison on rawhide
|
||||||
|
|
||||||
|
Cookie comments changed, so just strip them out
|
||||||
|
|
||||||
|
(crobinso: Add commit message, make change more readable)
|
||||||
|
|
||||||
|
diff --git a/tests/misc.py b/tests/misc.py
|
||||||
|
index 4b4f99d..12da806 100644
|
||||||
|
--- a/tests/misc.py
|
||||||
|
+++ b/tests/misc.py
|
||||||
|
@@ -83,7 +83,12 @@ class MiscAPI(unittest.TestCase):
|
||||||
|
|
||||||
|
# Mozilla should be converted inplace to LWP
|
||||||
|
bugzilla.Bugzilla3(url=None, cookiefile=cookiesnew)
|
||||||
|
- self.assertEquals(open(cookiesmoz).read(), open(cookiesnew).read())
|
||||||
|
+
|
||||||
|
+ def strip_comments(content):
|
||||||
|
+ return [l for l in content.split("\n") if not l.startswith("#")]
|
||||||
|
+ self.assertEquals(
|
||||||
|
+ strip_comments(open(cookiesmoz).read()),
|
||||||
|
+ strip_comments(open(cookiesnew).read()))
|
||||||
|
|
||||||
|
# Make sure bad cookies raise an error
|
||||||
|
try:
|
||||||
|
--
|
||||||
|
cgit v0.10.2
|
||||||
|
|
@ -1134,6 +1134,34 @@ let
|
|||||||
# };
|
# };
|
||||||
# });
|
# });
|
||||||
|
|
||||||
|
bugzilla = buildPythonPackage rec {
|
||||||
|
name = "bugzilla-${version}";
|
||||||
|
version = "1.1.0";
|
||||||
|
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "https://pypi.python.org/packages/source/p/python-bugzilla/python-${name}.tar.gz";
|
||||||
|
# md5 = "c95befd1fecad21f742beaa8180538c0"; # provided by pypi website.
|
||||||
|
sha256 = "11361635a4f1613803a0b9b93ba9126f7fd36180653f953e2590b1536d107d46";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ../development/python-modules/bugzilla/checkPhase-fix-cookie-compare.patch ];
|
||||||
|
|
||||||
|
buildInputs = with self; [ pep8 coverage logilab_common ];
|
||||||
|
propagatedBuildInputs = [ self.requests2 ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
mkdir -p check-phase
|
||||||
|
export HOME=$(pwd)/check-phase
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://fedorahosted.org/python-bugzilla/;
|
||||||
|
description = "Bugzilla XMLRPC access module";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
platforms = platforms.all;
|
||||||
|
maintainers = [ maintainers.pierron ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
buildout = self.zc_buildout;
|
buildout = self.zc_buildout;
|
||||||
buildout152 = self.zc_buildout152;
|
buildout152 = self.zc_buildout152;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user