mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +00:00
3d695c171d
Make it easier to override its pkgs.xrootd dependency. - Pass pkgs.xrootd as `xrootd` instead of `pkgs`. - Call with `inherit (pkgs) xrootd;`
42 lines
744 B
Nix
42 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cmake
|
|
, setuptools
|
|
, wheel
|
|
, xrootd
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xrootd";
|
|
pyproject = true;
|
|
|
|
inherit (xrootd) version src;
|
|
|
|
sourceRoot = "${src.name}/bindings/python";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
buildInputs = [
|
|
xrootd
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
pythonImportsCheck = [ "XRootD" ];
|
|
|
|
# Tests are only compatible with Python 2
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "The XRootD central repository";
|
|
homepage = "https://github.com/xrootd/xrootd";
|
|
changelog = "https://github.com/xrootd/xrootd/releases/tag/v${version}";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|