e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
39 lines
750 B
Nix
39 lines
750 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, fetchurl
|
|
, 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";
|
|
};
|
|
}
|