mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-15 04:20:23 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
34 lines
742 B
Nix
34 lines
742 B
Nix
{ lib
|
|
, pythonOlder
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, black
|
|
, python-lsp-server
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-lsp-black";
|
|
version = "1.2.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-lsp";
|
|
repo = "python-lsp-black";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-qNA6Bj1VI0YEtRuvcMQZGWakQNNrJ2PqhozrLmQHPAg=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ black python-lsp-server toml ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/python-lsp/python-lsp-black";
|
|
description = "Black plugin for the Python LSP Server";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ cpcloud ];
|
|
};
|
|
}
|