git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #36426 from couchemar/isort-4.3.4

pythonPackages.isort: 4.2.5 -> 4.3.4

commit318970454971380d62a12c07fbf60b6e36c34aae authorRobert Schütz <rschuetz17@gmail.com> dateMon 14 May 2018, 22:05 (9 years ago) parent33e076342d11fe
2 files changed+29−18
pkgs/development/python-modules/isort/default.nix+28 pkgs/top-level/python-packages.nix+1−18
pkgs/development/python-modules/isort/default.nixnew file+28
@@ -0,0 +1,28 @@
1+{ lib, buildPythonPackage, fetchPypi, isPy27, futures, mock, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "isort";
5+ version = "4.3.4";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1y0yfv56cqyh9wyg7kxxv9y5wmfgcq18n7a49mp7xmzka2bhxi5r";
10+ };
11+
12+ propagatedBuildInputs = lib.optional isPy27 futures;
13+
14+ checkInputs = [ mock pytest ];
15+
16+ checkPhase = ''
17+ py.test test_isort.py -k "not test_long_line_comments \
18+ and not test_import_case_produces_inconsistent_results_issue_472 \
19+ and not test_no_extra_lines_issue_557"
20+ '';
21+
22+ meta = with lib; {
23+ description = "A Python utility / library to sort Python imports";
24+ homepage = https://github.com/timothycrosley/isort;
25+ license = licenses.mit;
26+ maintainers = with maintainers; [ couchemar nand0p ];
27+ };
28+}
pkgs/top-level/python-packages.nix+1−18
@@ -6782,24 +6782,7 @@ in {
67826782
67836783 iso8601 = callPackage ../development/python-modules/iso8601 { };
67846784
6785− isort = buildPythonPackage rec {
6786− name = "${pname}-${version}";
6787− pname = "isort";
6788− version = "4.2.5";
6789− src = pkgs.fetchurl {
6790− url = "mirror://pypi/i/${pname}/${name}.tar.gz";
6791− sha256 = "0p7a6xaq7zxxq5vr5gizshnsbk2afm70apg97xwfdxiwyi201cjn";
6792− };
6793− buildInputs = with self; [ mock pytest ];
6794− # No tests distributed
6795− doCheck = false;
6796− meta = {
6797− description = "A Python utility / library to sort Python imports";
6798− homepage = https://github.com/timothycrosley/isort;
6799− license = licenses.mit;
6800− maintainers = with maintainers; [ couchemar nand0p ];
6801− };
6802− };
6785+ isort = callPackage ../development/python-modules/isort {};
68036786
68046787 jabberbot = callPackage ../development/python-modules/jabberbot {};
68056788