1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python-bugzilla: fix broken package name

This package has downloaded an incorrect source tarball for the longest time.
This commit is contained in:
Peter Simons 2019-07-04 13:49:03 +02:00
parent bfcbcfde97
commit c30788f2d5
2 changed files with 3 additions and 34 deletions

View file

@ -1,30 +0,0 @@
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

View file

@ -6,12 +6,11 @@ buildPythonPackage rec {
version = "2.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ikx21nm7cch4lz9agv5h1hx6zvg2alkpfdrl01khqgilhsicdhi";
pname = "python-${pname}";
inherit version;
sha256 = "0x3jjb1g5bgjdj0jf0jmcg80hn5x2isf49frwvf2ykdl3fxd5gxc";
};
patches = [ ./checkPhase-fix-cookie-compare.patch ];
buildInputs = [ pep8 coverage logilab_common ];
propagatedBuildInputs = [ requests ];