Merge pull request #44869 from Mic92/pyls-black

python.pkgs.pyls-black: init at 0.2.1

authored by Jörg Thalheim and committed by GitHub e140489e 285580c0

+42 -16
+32
pkgs/development/python-modules/pyls-black/default.nix
···
··· 1 + { lib, buildPythonPackage, fetchFromGitHub 2 + , black, toml, pytest, python-language-server, isPy3k 3 + }: 4 + 5 + buildPythonPackage rec { 6 + pname = "pyls-black"; 7 + version = "0.2.1"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "rupert"; 11 + repo = "pyls-black"; 12 + rev = "v${version}"; 13 + sha256 = "0xa3iv8nhnj0lw0dh41qb0dqp55sb6rdxalbk60v8jll6qyc0si8"; 14 + }; 15 + 16 + disabled = !isPy3k; 17 + 18 + checkPhase = '' 19 + pytest 20 + ''; 21 + 22 + checkInputs = [ pytest ]; 23 + 24 + propagatedBuildInputs = [ black toml python-language-server ]; 25 + 26 + meta = with lib; { 27 + homepage = https://github.com/rupert/pyls-black; 28 + description = "Black plugin for the Python Language Server"; 29 + license = licenses.mit; 30 + maintainers = [ maintainers.mic92 ]; 31 + }; 32 + }
+2 -2
pkgs/development/python-modules/pyls-isort/default.nix
··· 21 ]; 22 23 meta = with lib; { 24 - homepage = https://github.com/palantir/python-language-server; 25 - description = "An implementation of the Language Server Protocol for Python"; 26 license = licenses.mit; 27 maintainers = [ maintainers.mic92 ]; 28 };
··· 21 ]; 22 23 meta = with lib; { 24 + homepage = https://github.com/paradoxxxzero/pyls-isort; 25 + description = "Isort plugin for python-language-server"; 26 license = licenses.mit; 27 maintainers = [ maintainers.mic92 ]; 28 };
+5 -13
pkgs/development/python-modules/pyls-mypy/default.nix
··· 1 - { lib, buildPythonPackage, fetchFromGitHub, fetchpatch 2 , future, python-language-server, mypy, configparser 3 , pytest, mock, isPy3k, pytestcov, coverage 4 }: 5 6 buildPythonPackage rec { 7 pname = "pyls-mypy"; 8 - version = "0.1.2"; 9 10 src = fetchFromGitHub { 11 owner = "tomv564"; 12 repo = "pyls-mypy"; 13 rev = version; 14 - sha256 = "0wa038a8a8yj3wmrc7q909nj4b5d3lq70ysbw7rpsnyb0x06m826"; 15 }; 16 17 disabled = !isPy3k; 18 19 - patches = [ 20 - # also part of https://github.com/tomv564/pyls-mypy/pull/10 21 - (fetchpatch { 22 - url = "https://github.com/Mic92/pyls-mypy/commit/4c727120d2cbd8bf2825e1491cd55175f03266d2.patch"; 23 - sha256 = "1dgn5z742swpxwknmgvm65jpxq9zwzhggw4nl6ys7yw8r49kqgrl"; 24 - }) 25 - ]; 26 - 27 checkPhase = '' 28 HOME=$TEMPDIR pytest 29 ''; ··· 35 ]; 36 37 meta = with lib; { 38 - homepage = https://github.com/palantir/python-language-server; 39 - description = "An implementation of the Language Server Protocol for Python"; 40 license = licenses.mit; 41 maintainers = [ maintainers.mic92 ]; 42 };
··· 1 + { lib, buildPythonPackage, fetchFromGitHub 2 , future, python-language-server, mypy, configparser 3 , pytest, mock, isPy3k, pytestcov, coverage 4 }: 5 6 buildPythonPackage rec { 7 pname = "pyls-mypy"; 8 + version = "0.1.3"; 9 10 src = fetchFromGitHub { 11 owner = "tomv564"; 12 repo = "pyls-mypy"; 13 rev = version; 14 + sha256 = "0v7ghcd1715lxlfq304b7xhchp31ahdd89lf6za4n0l59dz74swh"; 15 }; 16 17 disabled = !isPy3k; 18 19 checkPhase = '' 20 HOME=$TEMPDIR pytest 21 ''; ··· 27 ]; 28 29 meta = with lib; { 30 + homepage = https://github.com/tomv564/pyls-mypy; 31 + description = "Mypy plugin for the Python Language Server"; 32 license = licenses.mit; 33 maintainers = [ maintainers.mic92 ]; 34 };
+3 -1
pkgs/top-level/python-packages.nix
··· 11003 11004 python-language-server = callPackage ../development/python-modules/python-language-server {}; 11005 11006 - pyls-mypy = callPackage ../development/python-modules/pyls-mypy {}; 11007 11008 pyls-isort = callPackage ../development/python-modules/pyls-isort {}; 11009 11010 pyudev = callPackage ../development/python-modules/pyudev { 11011 inherit (pkgs) systemd;
··· 11003 11004 python-language-server = callPackage ../development/python-modules/python-language-server {}; 11005 11006 + pyls-black = callPackage ../development/python-modules/pyls-black {}; 11007 11008 pyls-isort = callPackage ../development/python-modules/pyls-isort {}; 11009 + 11010 + pyls-mypy = callPackage ../development/python-modules/pyls-mypy {}; 11011 11012 pyudev = callPackage ../development/python-modules/pyudev { 11013 inherit (pkgs) systemd;