1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, isPy3k
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "zipfile36";
11 version = "0.1.3";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "a78a8dddf4fa114f7fe73df76ffcce7538e23433b7a6a96c1c904023f122aead";
16 };
17
18 checkPhase = ''
19 ${python.interpreter} -m unittest test_zipfile.py
20 '';
21
22 # Only works with Python 3.x.
23 # Not supposed to be used with 3.6 and up.
24 disabled = !(isPy3k && (pythonOlder "3.6"));
25
26 meta = {
27 description = "Read and write ZIP files - backport of the zipfile module from Python 3.6";
28 homepage = "https://gitlab.com/takluyver/zipfile36";
29 license = lib.licenses.psfl;
30 maintainers = lib.maintainers.fridh;
31 };
32}