--- a/debian/patches/0001_reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/0001_reproducible-build.patch 2019-08-16 08:12:09.271187454 -0700 @@ -0,0 +1,23 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2019-08-16 + +--- python-etcd3gw-0.2.1.orig/etcd3gw/client.py ++++ python-etcd3gw-0.2.1/etcd3gw/client.py +@@ -115,13 +115,15 @@ class Etcd3Client(object): + json={"TTL": ttl, "ID": 0}) + return Lease(int(result['ID']), client=self) + +- def lock(self, id=str(uuid.uuid4()), ttl=DEFAULT_TIMEOUT): ++ def lock(self, id=None, ttl=DEFAULT_TIMEOUT): + """Create a Lock object given an ID and timeout + + :param id: ID for the lock, creates a new uuid if not provided + :param ttl: timeout + :return: Lock object + """ ++ if id is None: ++ id = str(uuid.uuid4()) + return Lock(id, ttl=ttl, client=self) + + def create(self, key, value): --- a/debian/patches/series 1969-12-31 16:00:00.000000000 -0800 --- b/debian/patches/series 2019-08-16 08:12:07.966645878 -0700 @@ -0,0 +1 @@ +0001_reproducible-build.patch