diff --git a/pkgs/development/python-modules/bokeh-sampledata/default.nix b/pkgs/development/python-modules/bokeh-sampledata/default.nix index 200fa20c4588..af783a160c94 100644 --- a/pkgs/development/python-modules/bokeh-sampledata/default.nix +++ b/pkgs/development/python-modules/bokeh-sampledata/default.nix @@ -1,11 +1,10 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, # build-system setuptools, - setuptools-git-versioning, # dependencies icalendar, @@ -17,15 +16,21 @@ buildPythonPackage rec { version = "2025.0"; pyproject = true; - src = fetchPypi { - pname = "bokeh_sampledata"; - inherit version; - hash = "sha256-a4dK9bh45w8WEzaVrAfhXeOGQvqfrf33I/fUIzOWevQ="; + src = fetchFromGitHub { + owner = "bokeh"; + repo = "bokeh_sampledata"; + tag = version; + hash = "sha256-gAiiNm9t+4z0aFO6pr8FfYGF04pO7u6Wjsbou+I2blk="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail ', "setuptools-git-versioning"' "" \ + --replace-fail 'dynamic = ["version"]' 'version = "${version}"' + ''; + build-system = [ setuptools - setuptools-git-versioning ]; dependencies = [