Merge pull request #271227 from TomaSajt/dash

python311Packages.dash: 2.14.1 -> 2.14.2

authored by Weijia Wang and committed by GitHub 12f77d8f 6bdd104c

+12 -12
+12 -12
pkgs/development/python-modules/dash/default.nix
··· 3 3 , pythonOlder 4 4 , fetchFromGitHub 5 5 6 + , setuptools 6 7 , nodejs 7 8 , yarn 8 9 , prefetch-yarn-deps 9 10 , fetchYarnDeps 10 11 11 - , setuptools 12 12 , flask 13 13 , werkzeug 14 14 , plotly ··· 37 37 38 38 buildPythonPackage rec { 39 39 pname = "dash"; 40 - version = "2.14.1"; 41 - format = "setuptools"; 40 + version = "2.14.2"; 41 + pyproject = true; 42 42 43 43 disabled = pythonOlder "3.6"; 44 44 45 45 src = fetchFromGitHub { 46 46 owner = "plotly"; 47 - repo = pname; 48 - rev = "refs/tags/v${version}"; 49 - hash = "sha256-vQOfX9RCIbr5lfUyT2knwrO374/vm7jH+/1+BeqmRjI="; 47 + repo = "dash"; 48 + rev = "v${version}"; 49 + hash = "sha256-EFEsFgd3VbzlIUiz1fBIsKHywgWrL74taDFx0yIM/Ks="; 50 50 }; 51 51 52 52 nativeBuildInputs = [ 53 + setuptools 53 54 nodejs 54 55 yarn 55 56 prefetch-yarn-deps 56 57 ]; 57 58 58 - yarnDeps = fetchYarnDeps { 59 - yarnLock = src + "/@plotly/dash-jupyterlab/yarn.lock"; 59 + yarnOfflineCache = fetchYarnDeps { 60 + yarnLock = "${src}/@plotly/dash-jupyterlab/yarn.lock"; 60 61 hash = "sha256-mkiyrA0jGiP0zbabSjgHFLEUX3f+LZdJ8eARI5QA8CU="; 61 62 }; 62 63 ··· 65 66 66 67 export HOME=$(mktemp -d) 67 68 68 - yarn config --offline set yarn-offline-mirror ${yarnDeps} 69 + yarn config --offline set yarn-offline-mirror ${yarnOfflineCache} 69 70 fixup-yarn-lock yarn.lock 70 71 71 72 substituteInPlace package.json --replace jlpm yarn 72 73 yarn install --offline --frozen-lockfile --ignore-engines --ignore-scripts 73 - patchShebangs . 74 + patchShebangs node_modules 74 75 75 76 # Generates the jupyterlab extension files 76 77 yarn run build:pack ··· 79 80 ''; 80 81 81 82 propagatedBuildInputs = [ 82 - setuptools # for importing pkg_resources 83 83 flask 84 84 werkzeug 85 85 plotly ··· 125 125 pythonImportsCheck = [ "dash" ]; 126 126 127 127 meta = { 128 + changelog = "https://github.com/plotly/dash/blob/${src.rev}/CHANGELOG.md"; 128 129 description = "Python framework for building analytical web applications"; 129 130 homepage = "https://dash.plot.ly/"; 130 - changelog = "https://github.com/plotly/dash/blob/${src.rev}/CHANGELOG.md"; 131 131 license = lib.licenses.mit; 132 132 maintainers = with lib.maintainers; [ antoinerg tomasajt ]; 133 133 };