Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 68 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ lib, attrs, buildPythonPackage, deprecated, fetchFromGitHub, fetchPypi, hatch-vcs, hatchling, hepunits, pandas, pytestCheckHook, pythonOlder, setuptools-scm, tabulate}:
buildPythonPackage rec { pname = "particle"; version = "0.23.1"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi { inherit pname version; hash = "sha256-7uKLDoRr/qTf1w6exf/jJEYT2wi2tqm3c/VaQxB1L6s="; };
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 ]; };}