tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.zipfile36: move expression
Frederik Rietdijk
8 years ago
b35a257d
bd941043
+34
-25
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
zipfile36
default.nix
top-level
python-packages.nix
+33
pkgs/development/python-modules/zipfile36/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, python
5
5
+
, isPy3k
6
6
+
, pythonOlder
7
7
+
}:
8
8
+
9
9
+
buildPythonPackage rec {
10
10
+
pname = "zipfile36";
11
11
+
version = "0.1.3";
12
12
+
name = "${pname}-${version}";
13
13
+
14
14
+
src = fetchPypi {
15
15
+
inherit pname version;
16
16
+
sha256 = "a78a8dddf4fa114f7fe73df76ffcce7538e23433b7a6a96c1c904023f122aead";
17
17
+
};
18
18
+
19
19
+
checkPhase = ''
20
20
+
${python.interpreter} -m unittest test_zipfile.py
21
21
+
'';
22
22
+
23
23
+
# Only works with Python 3.x.
24
24
+
# Not supposed to be used with 3.6 and up.
25
25
+
disabled = !(isPy3k && (pythonOlder "3.6"));
26
26
+
27
27
+
meta = {
28
28
+
description = "Read and write ZIP files - backport of the zipfile module from Python 3.6";
29
29
+
homepage = https://gitlab.com/takluyver/zipfile36;
30
30
+
license = lib.licenses.psfl;
31
31
+
maintainer = lib.maintainers.fridh;
32
32
+
};
33
33
+
}
+1
-25
pkgs/top-level/python-packages.nix
···
26190
26190
26191
26191
zeroconf = callPackage ../development/python-modules/zeroconf { };
26192
26192
26193
26193
-
zipfile36 = buildPythonPackage rec {
26194
26194
-
pname = "zipfile36";
26195
26195
-
version = "0.1.3";
26196
26196
-
name = "${pname}-${version}";
26197
26197
-
26198
26198
-
src = pkgs.fetchurl {
26199
26199
-
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
26200
26200
-
sha256 = "a78a8dddf4fa114f7fe73df76ffcce7538e23433b7a6a96c1c904023f122aead";
26201
26201
-
};
26202
26202
-
26203
26203
-
checkPhase = ''
26204
26204
-
${python.interpreter} -m unittest test_zipfile.py
26205
26205
-
'';
26206
26206
-
26207
26207
-
# Only works with Python 3.x.
26208
26208
-
# Not supposed to be used with 3.6 and up.
26209
26209
-
disabled = !(isPy3k && (pythonOlder "3.6"));
26210
26210
-
26211
26211
-
meta = {
26212
26212
-
description = "Read and write ZIP files - backport of the zipfile module from Python 3.6";
26213
26213
-
homepage = https://gitlab.com/takluyver/zipfile36;
26214
26214
-
license = licenses.psfl;
26215
26215
-
maintainer = maintainers.fridh;
26216
26216
-
};
26217
26217
-
};
26193
26193
+
zipfile36 = callPackage ../development/python-modules/zipfile36 { };
26218
26194
26219
26195
todoist = callPackage ../development/python-modules/todoist { };
26220
26196