1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchPypi 5, setuptools-scm 6, attrs 7, deprecated 8, hepunits 9, pytestCheckHook 10, tabulate 11, pandas 12}: 13 14buildPythonPackage rec { 15 pname = "particle"; 16 version = "0.20.1"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "sha256-HoWWwoGMrkRqlYzrF2apGsxsZAHwHbHSO5TCSCelxUc="; 21 }; 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 propagatedBuildInputs = [ 27 attrs 28 deprecated 29 hepunits 30 ]; 31 32 pythonImportsCheck = [ 33 "particle" 34 ]; 35 36 preCheck = '' 37 # Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov 38 # as dependencies 39 substituteInPlace pyproject.toml \ 40 --replace '"--benchmark-disable", ' "" 41 rm tests/particle/test_performance.py 42 ''; 43 44 checkInputs = [ 45 pytestCheckHook 46 tabulate 47 pandas 48 ]; 49 50 meta = { 51 description = "Package to deal with particles, the PDG particle data table, PDGIDs, etc."; 52 homepage = "https://github.com/scikit-hep/particle"; 53 license = lib.licenses.bsd3; 54 maintainers = with lib.maintainers; [ doronbehar ]; 55 }; 56}