From 5fdd7d77d1c2f140e36170268634fa269174cbcf Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 16 Oct 2023 18:09:17 +0900 Subject: [PATCH 1/2] python311Packages.ppscore: unstable-2021-11-25 -> 1.3.0 Diff: https://github.com/8080labs/ppscore/compare/c9268c16b6305c5c38e2fe2fd84f43d97ec1aaca...1.3.0 Changelog: https://github.com/8080labs/ppscore/blob/1.3.0/CHANGELOG.md --- pkgs/development/python-modules/ppscore/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ppscore/default.nix b/pkgs/development/python-modules/ppscore/default.nix index c817fc390ead..23d2cdddbd08 100644 --- a/pkgs/development/python-modules/ppscore/default.nix +++ b/pkgs/development/python-modules/ppscore/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "ppscore"; - version = "unstable-2021-11-25"; + version = "1.3.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -17,8 +17,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "8080labs"; repo = pname; - rev = "c9268c16b6305c5c38e2fe2fd84f43d97ec1aaca"; - hash = "sha256-qiogjUgcLFauAMpVf2CKNC27c9xR9q7nY69n8/go1ms="; + rev = "refs/tags/${version}"; + hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU="; }; propagatedBuildInputs = [ From d57b19b88b42057926d9c46df7c7222c02347836 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 17 Oct 2023 15:32:09 +0900 Subject: [PATCH 2/2] python311Packages.ppscore: refactor - adopt `pyproject = true` - add changelog to meta --- pkgs/development/python-modules/ppscore/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ppscore/default.nix b/pkgs/development/python-modules/ppscore/default.nix index 23d2cdddbd08..b87e0e4c9839 100644 --- a/pkgs/development/python-modules/ppscore/default.nix +++ b/pkgs/development/python-modules/ppscore/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools , pandas , pytestCheckHook , pythonOlder @@ -10,17 +11,21 @@ buildPythonPackage rec { pname = "ppscore"; version = "1.3.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "8080labs"; - repo = pname; + repo = "ppscore"; rev = "refs/tags/${version}"; hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ pandas scikit-learn @@ -37,6 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python implementation of the Predictive Power Score (PPS)"; homepage = "https://github.com/8080labs/ppscore/"; + changelog = "https://github.com/8080labs/ppscore/blob/${src.rev}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ evax ]; };