python3.pkgs.celery-types: remove extraneous build dependencies

This commit is contained in:
Theodore Ni 2023-08-22 23:00:22 -07:00
parent d318144b57
commit 223663e8cf
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, poetry-core
, pythonOlder
@ -18,10 +19,15 @@ buildPythonPackage rec {
hash = "sha256-1OLUJxsuxG/sCKDxKiU4i7o5HyaJdIW8rPo8UofMI28=";
};
patchPhase = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
patches = [
# remove extraneous build dependencies:
# https://github.com/sbdchd/celery-types/pull/138
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/sbdchd/celery-types/commit/ff83f06a0302084e1a690e2a5a8b25f2c0dfc6e7.patch";
hash = "sha256-c68SMugg6Qk88FC842/czoxLpk0uVAVSlWsvo4NI9uo=";
})
];
propagatedBuildInputs = [
typing-extensions