075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
36 lines
715 B
Nix
36 lines
715 B
Nix
{
|
|
buildPythonPackage,
|
|
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
|
|
'';
|
|
|
|
pyproject = true;
|
|
|
|
propagatedBuildInputs = [
|
|
libeduvpn-common
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ selenium ];
|
|
|
|
pythonImportsCheck = [ "eduvpn_common" ];
|
|
|
|
meta = libeduvpn-common.meta // {
|
|
description = "Python wrapper for libeduvpn-common";
|
|
};
|
|
}
|