python3Packages.pyoprf: fix loading liboprf-noiseXK (#462348)
This commit is contained in:
@@ -29,6 +29,9 @@ buildPythonPackage rec {
|
|||||||
''
|
''
|
||||||
substituteInPlace ./pyoprf/__init__.py --replace-fail \
|
substituteInPlace ./pyoprf/__init__.py --replace-fail \
|
||||||
"ctypes.util.find_library('oprf') or ctypes.util.find_library('liboprf')" "'${lib.getLib liboprf}/lib/liboprf${soext}'"
|
"ctypes.util.find_library('oprf') or ctypes.util.find_library('liboprf')" "'${lib.getLib liboprf}/lib/liboprf${soext}'"
|
||||||
|
substituteInPlace pyoprf/noisexk.py \
|
||||||
|
--replace-fail "ctypes.util.find_library('oprf-noiseXK')" "'${lib.getLib liboprf}/lib/liboprf-noiseXK${soext}'" \
|
||||||
|
--replace-fail "or ctypes.util.find_library('liboprf-noiseXK')" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sourceRoot = "${src.name}/python";
|
sourceRoot = "${src.name}/python";
|
||||||
@@ -51,9 +54,9 @@ buildPythonPackage rec {
|
|||||||
pytestFlagsArray = [ "tests/test.py" ];
|
pytestFlagsArray = [ "tests/test.py" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
homepage = "https://github.com/stef/liboprf/tree/master/python";
|
||||||
inherit (liboprf.meta)
|
inherit (liboprf.meta)
|
||||||
description
|
description
|
||||||
homepage
|
|
||||||
changelog
|
changelog
|
||||||
license
|
license
|
||||||
teams
|
teams
|
||||||
|
|||||||
Reference in New Issue
Block a user