Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, pythonOlder 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, black 7, python-lsp-server 8, toml 9}: 10 11buildPythonPackage rec { 12 pname = "python-lsp-black"; 13 version = "1.2.1"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "python-lsp"; 18 repo = "python-lsp-black"; 19 rev = "v${version}"; 20 hash = "sha256-qNA6Bj1VI0YEtRuvcMQZGWakQNNrJ2PqhozrLmQHPAg="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 propagatedBuildInputs = [ black python-lsp-server toml ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/python-lsp/python-lsp-black"; 29 description = "Black plugin for the Python LSP Server"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ cpcloud ]; 32 }; 33}