pythonPackages.xrootd: improve xrootd overriding (#289072)

Make it easier to override its pkgs.xrootd dependency.
- Pass pkgs.xrootd as `xrootd` instead of `pkgs`.
- Call with `inherit (pkgs) xrootd;`
This commit is contained in:
Yueh-Shun Li 2024-02-16 01:12:41 +08:00 committed by GitHub
parent 3f04d960a2
commit 3d695c171d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -3,14 +3,14 @@
, cmake
, setuptools
, wheel
, pkgs
, xrootd
}:
buildPythonPackage rec {
pname = "xrootd";
pyproject = true;
inherit (pkgs.xrootd) version src;
inherit (xrootd) version src;
sourceRoot = "${src.name}/bindings/python";
@ -21,7 +21,7 @@ buildPythonPackage rec {
];
buildInputs = [
pkgs.xrootd
xrootd
];
dontUseCmakeConfigure = true;

View file

@ -16419,7 +16419,9 @@ self: super: with self; {
xpybutil = callPackage ../development/python-modules/xpybutil { };
xrootd = callPackage ../development/python-modules/xrootd { };
xrootd = callPackage ../development/python-modules/xrootd {
inherit (pkgs) xrootd;
};
xsdata = callPackage ../development/python-modules/xsdata { };