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";