lol

python.pkgs.click-threading: move and fix expression

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