push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
{
lib,
attrs,
buildPythonPackage,
deprecated,
fetchPypi,
hatch-vcs,
hatchling,
hepunits,
pandas,
pytestCheckHook,
pythonOlder,
tabulate,
}:
buildPythonPackage rec {
pname = "particle";
version = "0.25.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-v6d9iqBz5rSY8a4tTUkmtwdmKwYPsj65hqfNtJMfWK8=";
};
postPatch = ''
# Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov
# as dependencies
substituteInPlace pyproject.toml \
--replace '"--benchmark-disable",' ""
'';
build-system = [
hatch-vcs
hatchling
];
dependencies = [
attrs
deprecated
hepunits
];
nativeCheckInputs = [
pytestCheckHook
tabulate
pandas
];
pythonImportsCheck = [ "particle" ];
disabledTestPaths = [
# Requires pytest-benchmark and pytest-cov which we want to avoid using, as
# it doesn't really test functionality.
"tests/particle/test_performance.py"
];
meta = {
description = "Package to deal with particles, the PDG particle data table and others";
homepage = "https://github.com/scikit-hep/particle";
changelog = "https://github.com/scikit-hep/particle/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
}