From 58d2544e35d6c5f1d5cca2d8344ae7ebb2cc18b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 31 Aug 2024 20:22:14 -0700 Subject: [PATCH] python312Packages.fnv-hash-fast: 0.5.0 -> 1.0.2 Diff: https://github.com/bdraco/fnv-hash-fast/compare/v0.5.0...v1.0.2 Changelog: https://github.com/bdraco/fnv-hash-fast/blob/v1.0.2/CHANGELOG.md --- .../python-modules/fnv-hash-fast/default.nix | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/fnv-hash-fast/default.nix b/pkgs/development/python-modules/fnv-hash-fast/default.nix index 0f25cc83eac2..26730aa7f434 100644 --- a/pkgs/development/python-modules/fnv-hash-fast/default.nix +++ b/pkgs/development/python-modules/fnv-hash-fast/default.nix @@ -5,40 +5,37 @@ cython, poetry-core, setuptools, - wheel, fnvhash, + pytest-cov-stub, pytestCheckHook, }: buildPythonPackage rec { pname = "fnv-hash-fast"; - version = "0.5.0"; - format = "pyproject"; + version = "1.0.2"; + pyproject = true; src = fetchFromGitHub { owner = "bdraco"; repo = "fnv-hash-fast"; - rev = "v${version}"; - hash = "sha256-gAHCssJC6sTR6ftkQHrtF/5Nf9dXE4ykRhVusb0Gu3I="; + rev = "refs/tags/v${version}"; + hash = "sha256-kJQZnj1ja7cVZSDOuUI3rkNIvyH508wFKAvJ5XfwCNU="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "--cov=fnv_hash_fast --cov-report=term-missing:skip-covered" "" - ''; - - nativeBuildInputs = [ + build-system = [ cython poetry-core setuptools - wheel ]; - propagatedBuildInputs = [ fnvhash ]; + dependencies = [ fnvhash ]; pythonImportsCheck = [ "fnv_hash_fast" ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; meta = with lib; { description = "Fast version of fnv1a";