Skip to content

Commit 4d30616

Browse files
committed
chore(nix): adding dependencies to build C extension of python-hyperscan
As it is not installable from wheel on Python 3.10+
1 parent b6846d1 commit 4d30616

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
, lzo
1212
, lzop
1313
, p7zip
14+
, pkg-config
1415
, sasquatch
1516
, simg2img
1617
, unar
@@ -74,7 +75,16 @@ let
7475
hyperscan = super.hyperscan.overridePythonAttrs (_: {
7576
buildInputs = [
7677
hyperscan
78+
self.poetry
79+
self.setuptools
80+
];
81+
nativeBuildInputs = [
82+
pkg-config
7783
];
84+
85+
installPhase = ''
86+
${self.python.pythonForBuild.interpreter} -m pip install --no-build-isolation --no-index --prefix=$out --ignore-installed --no-dependencies --no-cache .
87+
'';
7888
});
7989

8090
arpy = overrideWithSetuptools super.arpy { };

0 commit comments

Comments
 (0)