Merge pull request #212463 from fabaff/particle-fix
python310Packages.particle: 0.21.0 -> 0.21.1
This commit is contained in:
commit
5b0130945a
1 changed files with 35 additions and 25 deletions
|
@ -1,56 +1,66 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, attrs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools-scm
|
, hatch-vcs
|
||||||
, attrs
|
, hatchling
|
||||||
, deprecated
|
|
||||||
, hepunits
|
, hepunits
|
||||||
, pytestCheckHook
|
|
||||||
, tabulate
|
|
||||||
, pandas
|
, pandas
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools-scm
|
||||||
|
, tabulate
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "particle";
|
pname = "particle";
|
||||||
version = "0.21.0";
|
version = "0.21.1";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-SDdIg05+gfLNaQ+glitTf3Z/6K9HBci62mjIu9rIoX0=";
|
hash = "sha256-Mw9IVQoXZU8ByU6OI2Wtmo3PJuVz6KzzH7I+pPYkssQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov
|
||||||
|
# as dependencies
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace '"--benchmark-disable",' ""
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools-scm
|
hatch-vcs
|
||||||
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
attrs
|
attrs
|
||||||
deprecated
|
|
||||||
hepunits
|
hepunits
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"particle"
|
|
||||||
];
|
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
# Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov
|
|
||||||
# as dependencies
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace '"--benchmark-disable", ' ""
|
|
||||||
rm tests/particle/test_performance.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
tabulate
|
tabulate
|
||||||
pandas
|
pandas
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [
|
||||||
description = "Package to deal with particles, the PDG particle data table, PDGIDs, etc.";
|
"particle"
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
"tests/particle/test_performance.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Package to deal with particles, the PDG particle data table and others";
|
||||||
homepage = "https://github.com/scikit-hep/particle";
|
homepage = "https://github.com/scikit-hep/particle";
|
||||||
license = lib.licenses.bsd3;
|
changelog = "https://github.com/scikit-hep/particle/releases/tag/v${version}";
|
||||||
maintainers = with lib.maintainers; [ doronbehar ];
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ doronbehar ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue