fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
37 lines
741 B
Nix
37 lines
741 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
callPackage,
|
|
libeduvpn-common,
|
|
selenium,
|
|
setuptools,
|
|
}:
|
|
|
|
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
|
|
];
|
|
|
|
nativeCheckInputs = [ selenium ];
|
|
|
|
pythonImportsCheck = [ "eduvpn_common" ];
|
|
|
|
meta = libeduvpn-common.meta // {
|
|
description = "Python wrapper for libeduvpn-common";
|
|
};
|
|
}
|