From 652d8b87e24548a6b18bc4e96e117fc99c1d2a48 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 18:14:25 +0100 Subject: [PATCH 1/2] python311Packages.identify: 2.5.33 -> 2.5.34 Diff: https://github.com/pre-commit/identify/compare/refs/tags/v2.5.33...v2.5.34 --- pkgs/development/python-modules/identify/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/identify/default.nix b/pkgs/development/python-modules/identify/default.nix index f2ce179d65bd..8bffa5524096 100644 --- a/pkgs/development/python-modules/identify/default.nix +++ b/pkgs/development/python-modules/identify/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "identify"; - version = "2.5.33"; + version = "2.5.34"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "pre-commit"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-v0k+N/E1xzhL2iWM0HQzYCxHfzuP8Za4eupkofN7bAA="; + hash = "sha256-q1RVFdDFUkKGaKpcbasXHks+OZhVRZUy3ufuruBZiPA="; }; nativeCheckInputs = [ From 8579f700f8cdf0f43cb13791509cd8aae41bfaab Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Feb 2024 18:21:22 +0100 Subject: [PATCH 2/2] python311Packages.identify: refactor --- pkgs/development/python-modules/identify/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/identify/default.nix b/pkgs/development/python-modules/identify/default.nix index 8bffa5524096..252a40b7cbe2 100644 --- a/pkgs/development/python-modules/identify/default.nix +++ b/pkgs/development/python-modules/identify/default.nix @@ -4,23 +4,28 @@ , fetchFromGitHub , pytestCheckHook , pythonOlder +, setuptools , ukkonen }: buildPythonPackage rec { pname = "identify"; version = "2.5.34"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pre-commit"; - repo = pname; + repo = "identify"; rev = "refs/tags/v${version}"; hash = "sha256-q1RVFdDFUkKGaKpcbasXHks+OZhVRZUy3ufuruBZiPA="; }; + nativeBuildInputs = [ + setuptools + ]; + nativeCheckInputs = [ editdistance-s pytestCheckHook