1{ 2 buildPythonPackage, 3 libeduvpn-common, 4 selenium, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 inherit (libeduvpn-common) version src; 10 pname = "eduvpn-common"; 11 12 sourceRoot = "${pname}-${version}/wrappers/python"; 13 14 patches = [ ./use-nix-lib.patch ]; 15 16 postPatch = '' 17 substituteInPlace eduvpn_common/loader.py \ 18 --subst-var-by libeduvpn-common ${libeduvpn-common.out}/lib/lib${pname}-${version}.so 19 ''; 20 21 format = "pyproject"; 22 23 propagatedBuildInputs = [ 24 libeduvpn-common 25 setuptools 26 ]; 27 28 nativeCheckInputs = [ selenium ]; 29 30 pythonImportsCheck = [ "eduvpn_common" ]; 31 32 meta = libeduvpn-common.meta // { 33 description = "Python wrapper for libeduvpn-common"; 34 }; 35}