python311Packages.pyarrow-hotfix: init at 0.6

Hotfix for the PyArrow security vulnerability CVE-2023-47248

https://github.com/pitrou/pyarrow-hotfix
This commit is contained in:
Fabian Affolter 2024-01-19 16:48:45 +01:00
parent b956688fd1
commit 2967f4c6a0
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyarrow-hotfix";
version = "0.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pitrou";
repo = "pyarrow-hotfix";
rev = "refs/tags/v${version}";
hash = "sha256-LlSbxIxvouzvlP6PB8J8fJaxWoRbxz4wTs7Gb5LbM4A=";
};
nativeBuildInputs = [
hatchling
];
pythonImportsCheck = [
"pyarrow_hotfix"
];
meta = with lib; {
description = "Hotfix for the PyArrow security vulnerability CVE-2023-47248";
homepage = "https://github.com/pitrou/pyarrow-hotfix";
changelog = "https://github.com/pitrou/pyarrow-hotfix/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -10060,6 +10060,8 @@ self: super: with self; {
inherit (pkgs) arrow-cpp cmake;
};
pyarrow-hotfix = callPackage ../development/python-modules/pyarrow-hotfix { };
pyasn = callPackage ../development/python-modules/pyasn { };
pyasn1 = callPackage ../development/python-modules/pyasn1 { };