evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / particle / default.nix
blob96dbf62e41665127068f01fb796253d03ed8644a
2   lib,
3   attrs,
4   buildPythonPackage,
5   deprecated,
6   fetchPypi,
7   hatch-vcs,
8   hatchling,
9   hepunits,
10   pandas,
11   pytestCheckHook,
12   pythonOlder,
13   tabulate,
16 buildPythonPackage rec {
17   pname = "particle";
18   version = "0.25.2";
19   pyproject = true;
21   disabled = pythonOlder "3.9";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-H6S77ji/6u8IpAsnebTDDFzk+ihloQwCrP6QZ5tOYek=";
26   };
28   postPatch = ''
29     # Disable benchmark tests, so we won't need pytest-benchmark and pytest-cov
30     # as dependencies
31     substituteInPlace pyproject.toml \
32       --replace '"--benchmark-disable",' ""
33   '';
35   build-system = [
36     hatch-vcs
37     hatchling
38   ];
40   dependencies = [
41     attrs
42     deprecated
43     hepunits
44   ];
46   nativeCheckInputs = [
47     pytestCheckHook
48     tabulate
49     pandas
50   ];
52   pythonImportsCheck = [ "particle" ];
54   disabledTestPaths = [
55     # Requires pytest-benchmark and pytest-cov which we want to avoid using, as
56     # it doesn't really test functionality.
57     "tests/particle/test_performance.py"
58   ];
60   meta = {
61     description = "Package to deal with particles, the PDG particle data table and others";
62     homepage = "https://github.com/scikit-hep/particle";
63     changelog = "https://github.com/scikit-hep/particle/releases/tag/v${version}";
64     license = lib.licenses.bsd3;
65     maintainers = with lib.maintainers; [ doronbehar ];
66   };