tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.click-threading: move and fix expression
Frederik Rietdijk
8 years ago
217626a3
ed81943b
+35
-26
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
click-threading
default.nix
top-level
python-packages.nix
+34
pkgs/development/python-modules/click-threading/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, pytest
5
5
+
, click
6
6
+
, isPy3k
7
7
+
, futures
8
8
+
}:
9
9
+
10
10
+
buildPythonPackage rec {
11
11
+
pname = "click-threading";
12
12
+
version = "0.4.2";
13
13
+
14
14
+
src = fetchPypi {
15
15
+
inherit pname version;
16
16
+
sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
17
17
+
};
18
18
+
19
19
+
checkInputs = [ pytest ];
20
20
+
propagatedBuildInputs = [ click ] ++ lib.optional (!isPy3k) futures;
21
21
+
22
22
+
checkPhase = ''
23
23
+
py.test
24
24
+
'';
25
25
+
26
26
+
# Tests are broken on 3.x
27
27
+
doCheck = !isPy3k;
28
28
+
29
29
+
meta = {
30
30
+
homepage = https://github.com/click-contrib/click-threading/;
31
31
+
description = "Multithreaded Click apps made easy";
32
32
+
license = lib.licenses.mit;
33
33
+
};
34
34
+
}
+1
-26
pkgs/top-level/python-packages.nix
reviewed
···
2409
2409
2410
2410
click-plugins = callPackage ../development/python-modules/click-plugins {};
2411
2411
2412
2412
-
click-threading = buildPythonPackage rec {
2413
2413
-
version = "0.4.2";
2414
2414
-
name = "click-threading-${version}";
2415
2415
-
2416
2416
-
src = pkgs.fetchurl {
2417
2417
-
url = "mirror://pypi/c/click-threading/${name}.tar.gz";
2418
2418
-
sha256 = "400b0bb63d9096b6bf2806efaf742a1cc8b6c88e0484f0afe7d7a7f0e9870609";
2419
2419
-
};
2420
2420
-
2421
2421
-
checkInputs = with self; [ pytest_29 ];
2422
2422
-
propagatedBuildInputs = with self; [ click ] ++ optional (!isPy3k) futures;
2423
2423
-
2424
2424
-
checkPhase = ''
2425
2425
-
py.test
2426
2426
-
'';
2427
2427
-
2428
2428
-
# Tests are broken on 3.x
2429
2429
-
doCheck = !isPy3k;
2430
2430
-
2431
2431
-
meta = {
2432
2432
-
homepage = https://github.com/click-contrib/click-threading/;
2433
2433
-
description = "Multithreaded Click apps made easy";
2434
2434
-
license = licenses.mit;
2435
2435
-
maintainers = with maintainers; [ ];
2436
2436
-
};
2437
2437
-
};
2412
2412
+
click-threading = callPackage ../development/python-modules/click-threading {};
2438
2413
2439
2414
cligj = callPackage ../development/python-modules/cligj { };
2440
2415