Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, attrs, buildPythonPackage, deprecated, fetchPypi, hatch-vcs, hatchling, hepunits, pandas, pytestCheckHook, pythonOlder, setuptools-scm, tabulate,}:
buildPythonPackage rec { pname = "particle"; version = "0.24.0"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-irS13UVHui2ug1SVWkNSEIkqV13/RvMjysbPQGALl2o="; };
postPatch = '' # Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov # as dependencies substituteInPlace pyproject.toml \ --replace '"--benchmark-disable",' "" '';
nativeBuildInputs = [ hatch-vcs hatchling ];
propagatedBuildInputs = [ attrs deprecated hepunits ];
nativeCheckInputs = [ pytestCheckHook tabulate pandas ];
pythonImportsCheck = [ "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"; changelog = "https://github.com/scikit-hep/particle/releases/tag/v${version}"; license = licenses.bsd3; maintainers = with maintainers; [ doronbehar ]; };}