From d4512d34cd0c4e5b67b27eadcfd2cbc2c4068ff6 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 13 Sep 2024 09:28:35 +0000 Subject: [PATCH 1/2] python312Packages.particle: 0.25.0 -> 0.25.1 --- pkgs/development/python-modules/particle/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/particle/default.nix b/pkgs/development/python-modules/particle/default.nix index 0fe769d05238..af028c79e5bb 100644 --- a/pkgs/development/python-modules/particle/default.nix +++ b/pkgs/development/python-modules/particle/default.nix @@ -15,14 +15,14 @@ buildPythonPackage rec { pname = "particle"; - version = "0.25.0"; + version = "0.25.1"; format = "pyproject"; disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-ji1fo2VV5q8hi2bpe5WFsdT1IIV4XZbAZ3NvCy5X9a0="; + hash = "sha256-lwZ0jpWnBt/9SUJts5MpgZf+GvgZchxdLG5RV2Sh+wE="; }; postPatch = '' From 83819b55ab540c7454ccfbac301e31879717e9c2 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 13 Sep 2024 13:33:45 +0300 Subject: [PATCH 2/2] python312Packages.particle: small cleanup --- .../python-modules/particle/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/particle/default.nix b/pkgs/development/python-modules/particle/default.nix index af028c79e5bb..112b733ed284 100644 --- a/pkgs/development/python-modules/particle/default.nix +++ b/pkgs/development/python-modules/particle/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "particle"; version = "0.25.1"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.9"; @@ -32,12 +32,12 @@ buildPythonPackage rec { --replace '"--benchmark-disable",' "" ''; - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - propagatedBuildInputs = [ + dependencies = [ attrs deprecated hepunits @@ -51,13 +51,17 @@ buildPythonPackage rec { pythonImportsCheck = [ "particle" ]; - disabledTestPaths = [ "tests/particle/test_performance.py" ]; + disabledTestPaths = [ + # Requires pytest-benchmark and pytest-cov which we want to avoid using, as + # it doesn't really test functionality. + "tests/particle/test_performance.py" + ]; - meta = with lib; { + meta = { 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 ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ doronbehar ]; }; }