python3Packages.astropy: apply patch removing the usage of polyfill.io

`cdn.polyfill.io` is now considered to be a bad actor.

https://sansec.io/research/polyfill-supply-chain-attack
This commit is contained in:
Doron Behar
2024-06-30 23:33:06 +03:00
committed by Thomas Gerbet
parent 2ccc79cca0
commit e70820b94b

View File

@@ -1,6 +1,7 @@
{
lib,
fetchPypi,
fetchpatch,
buildPythonPackage,
pythonOlder,
@@ -37,6 +38,14 @@ buildPythonPackage rec {
hash = "sha256-ial13jVtBgjnTx9JNEL7Osu7eoW3OeB0RguwNAAUs5w=";
};
patches = [
(fetchpatch {
name = "drop-usage-known-bad-actor-cdn.patch";
url = "https://github.com/astropy/astropy/commit/d329cb38e49584ad0ff5244fd2fff74cfa1f92f1.patch";
hash = "sha256-+DbDwYeyR+mMDLRB4jiyol/5WO0LwqSCCEwjgflxoTk=";
})
];
nativeBuildInputs = [
astropy-extension-helpers
cython