Merge pull request #36426 from couchemar/isort-4.3.4
pythonPackages.isort: 4.2.5 -> 4.3.4
This commit is contained in:
commit
3189704549
28
pkgs/development/python-modules/isort/default.nix
Normal file
28
pkgs/development/python-modules/isort/default.nix
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchPypi, isPy27, futures, mock, pytest }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "isort";
|
||||||
|
version = "4.3.4";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1y0yfv56cqyh9wyg7kxxv9y5wmfgcq18n7a49mp7xmzka2bhxi5r";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = lib.optional isPy27 futures;
|
||||||
|
|
||||||
|
checkInputs = [ mock pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test test_isort.py -k "not test_long_line_comments \
|
||||||
|
and not test_import_case_produces_inconsistent_results_issue_472 \
|
||||||
|
and not test_no_extra_lines_issue_557"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Python utility / library to sort Python imports";
|
||||||
|
homepage = https://github.com/timothycrosley/isort;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ couchemar nand0p ];
|
||||||
|
};
|
||||||
|
}
|
@ -6782,24 +6782,7 @@ in {
|
|||||||
|
|
||||||
iso8601 = callPackage ../development/python-modules/iso8601 { };
|
iso8601 = callPackage ../development/python-modules/iso8601 { };
|
||||||
|
|
||||||
isort = buildPythonPackage rec {
|
isort = callPackage ../development/python-modules/isort {};
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "isort";
|
|
||||||
version = "4.2.5";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/i/${pname}/${name}.tar.gz";
|
|
||||||
sha256 = "0p7a6xaq7zxxq5vr5gizshnsbk2afm70apg97xwfdxiwyi201cjn";
|
|
||||||
};
|
|
||||||
buildInputs = with self; [ mock pytest ];
|
|
||||||
# No tests distributed
|
|
||||||
doCheck = false;
|
|
||||||
meta = {
|
|
||||||
description = "A Python utility / library to sort Python imports";
|
|
||||||
homepage = https://github.com/timothycrosley/isort;
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ couchemar nand0p ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
jabberbot = callPackage ../development/python-modules/jabberbot {};
|
jabberbot = callPackage ../development/python-modules/jabberbot {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user