python3.pkgs.pyoutbreaksnearme: clean up build dependency constraints

This commit is contained in:
Theodore Ni 2023-08-22 15:21:15 -07:00
parent 698b6cc568
commit ecd4e3206c
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-asyncio
, pytest-aiohttp
@ -25,6 +26,20 @@ buildPythonPackage rec {
hash = "sha256-D7oXkKDSg+yF+j1WyG/VVY12hLU6oyhEtxLrF6IkMSA=";
};
patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/pyoutbreaksnearme/pull/174
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/pyoutbreaksnearme/commit/45fba9f689253a0f79ebde93086ee731a4151553.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];
nativeBuildInputs = [
poetry-core
];
@ -34,6 +49,8 @@ buildPythonPackage rec {
ujson
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
aresponses
pytest-asyncio