2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
callPackage,
|
|
|
|
libeduvpn-common,
|
|
|
|
selenium,
|
|
|
|
setuptools,
|
2024-01-13 08:15:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
inherit (libeduvpn-common) version src;
|
|
|
|
pname = "eduvpn-common";
|
|
|
|
|
|
|
|
sourceRoot = "${pname}-${version}/wrappers/python";
|
|
|
|
|
|
|
|
patches = [ ./use-nix-lib.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace eduvpn_common/loader.py \
|
|
|
|
--subst-var-by libeduvpn-common ${libeduvpn-common.out}/lib/lib${pname}-${version}.so
|
|
|
|
'';
|
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libeduvpn-common
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ selenium ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "eduvpn_common" ];
|
|
|
|
|
|
|
|
meta = libeduvpn-common.meta // {
|
|
|
|
description = "Python wrapper for libeduvpn-common";
|
|
|
|
};
|
|
|
|
}
|