git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.isort: 4.2.5 -> 4.3.4
commit42d11feae80f86b450ce64eef75a6f21dc807aab authorAndrey Pavlov <couchemar@yandex.ru> dateWed 7 Mar 2018, 17:19 (9 years ago) parent0963abf
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
@@ -6802,24 +6802,7 @@ in {
68026802
68036803 iso8601 = callPackage ../development/python-modules/iso8601 { };
68046804
6805− isort = buildPythonPackage rec {
6806− name = "${pname}-${version}";
6807− pname = "isort";
6808− version = "4.2.5";
6809− src = pkgs.fetchurl {
6810− url = "mirror://pypi/i/${pname}/${name}.tar.gz";
6811− sha256 = "0p7a6xaq7zxxq5vr5gizshnsbk2afm70apg97xwfdxiwyi201cjn";
6812− };
6813− buildInputs = with self; [ mock pytest ];
6814− # No tests distributed
6815− doCheck = false;
6816− meta = {
6817− description = "A Python utility / library to sort Python imports";
6818− homepage = https://github.com/timothycrosley/isort;
6819− license = licenses.mit;
6820− maintainers = with maintainers; [ couchemar nand0p ];
6821− };
6822− };
6805+ isort = callPackage ../development/python-modules/isort {};
68236806
68246807 jabberbot = callPackage ../development/python-modules/jabberbot {};
68256808