python3Packages.snakemake-storage-plugin-xrootd: 1.0.0 -> 1.1.0
Diff: https://github.com/snakemake/snakemake-storage-plugin-xrootd/compare/v1.0.0...v1.1.0 Changelog: https://github.com/snakemake/snakemake-storage-plugin-xrootd/releases/tag/v1.1.0
This commit is contained in:
@@ -1,29 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatch-vcs,
|
||||
hatchling,
|
||||
snakemake,
|
||||
snakemake-interface-storage-plugins,
|
||||
|
||||
# dependencies
|
||||
reretry,
|
||||
snakemake-interface-common,
|
||||
snakemake-interface-storage-plugins,
|
||||
xrootd,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
snakemake,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "snakemake-storage-plugin-xrootd";
|
||||
version = "1.0.0";
|
||||
version = "1.1.0";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snakemake";
|
||||
repo = "snakemake-storage-plugin-xrootd";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-QYG/BE7y3h/Mz1PrVVxmfBBLBLoirrEx9unSEaflUds=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-vL9JD9h0ywsKpUPoXhgg6b+vwi7kxK8CF3L6HnAEidE=";
|
||||
};
|
||||
|
||||
# xrootd<6.0.0,>=5.6.4 not satisfied by version 5.7rc20240303
|
||||
pythonRelaxDeps = [ "xrootd" ];
|
||||
postPatch = ''
|
||||
substituteInPlace tests/tests.py \
|
||||
--replace-fail \
|
||||
'subprocess.Popen(["xrootd",' \
|
||||
'subprocess.Popen(["${lib.getExe pkgs.xrootd}",'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
hatch-vcs
|
||||
@@ -33,17 +47,24 @@ buildPythonPackage rec {
|
||||
dependencies = [
|
||||
snakemake-interface-storage-plugins
|
||||
snakemake-interface-common
|
||||
reretry
|
||||
xrootd
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ snakemake ];
|
||||
|
||||
pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
snakemake
|
||||
];
|
||||
|
||||
enabledTestPaths = [ "tests/tests.py" ];
|
||||
|
||||
meta = {
|
||||
description = "Snakemake storage plugin for handling input and output via XRootD";
|
||||
homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd";
|
||||
changelog = "https://github.com/snakemake/snakemake-storage-plugin-xrootd/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ veprbl ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user