Commit d15f5daf authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.distributed: 2023.2.1 -> 2023.4.1

parent 1ff212f0
Loading
Loading
Loading
Loading
+22 −9
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
, click
, cloudpickle
, dask
, fetchPypi
, fetchFromGitHub
, jinja2
, locket
, msgpack
@@ -11,31 +11,43 @@
, psutil
, pythonOlder
, pyyaml
, setuptools
, setuptools-scm
, sortedcontainers
, tblib
, toolz
, tornado
, urllib3
, versioneer
, wheel
, zict
}:

buildPythonPackage rec {
  pname = "distributed";
  version = "2023.2.1";
  format = "setuptools";
  version = "2023.4.1";
  format = "pyproject";

  disabled = pythonOlder "3.7";
  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-E0eks6HlJzZy/XqHRxQJ4brEcLS9tniMkYMT1FoikRs=";
  src = fetchFromGitHub {
    owner = "dask";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-KCgftu3i8N0WSelHiqWqa1vLN5gUtleftSUx1Zu4nZg=";
  };

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "tornado >= 6.0.3, <6.2" "tornado >= 6.0.3"
    substituteInPlace pyproject.toml \
      --replace 'dynamic = ["version"]' 'version = "${version}"'
  '';

  nativeBuildInputs = [
    setuptools
    setuptools-scm
    versioneer
  ];

  propagatedBuildInputs = [
    click
    cloudpickle
@@ -64,6 +76,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Distributed computation in Python";
    homepage = "https://distributed.readthedocs.io/";
    changelog = "https://github.com/dask/distributed/blob/${version}/docs/source/changelog.rst";
    license = licenses.bsd3;
    maintainers = with maintainers; [ teh costrouc ];
  };