From f5df675dce3209ef975e3613db9bfea19f3676e0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Jun 2023 22:05:29 +0200 Subject: [PATCH] python311Packages.py-multihash: remove pytest-runner --- .../python-modules/py-multihash/default.nix | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/py-multihash/default.nix b/pkgs/development/python-modules/py-multihash/default.nix index a23ff548cf87..9ae0d1a1d3db 100644 --- a/pkgs/development/python-modules/py-multihash/default.nix +++ b/pkgs/development/python-modules/py-multihash/default.nix @@ -1,9 +1,8 @@ -{ base58 +{ lib +, base58 , buildPythonPackage , fetchFromGitHub -, lib , morphys -, pytest-runner , pytestCheckHook , pythonOlder , six @@ -13,18 +12,21 @@ buildPythonPackage rec { pname = "py-multihash"; version = "2.0.1"; + format = "setuptools"; + disabled = pythonOlder "3.4"; src = fetchFromGitHub { owner = "multiformats"; repo = pname; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA="; }; - nativeBuildInputs = [ - pytest-runner - ]; + postPatch = '' + substituteInPlace setup.py \ + --replace "'pytest-runner', " "" + ''; propagatedBuildInputs = [ base58 @@ -37,7 +39,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "multihash" ]; + pythonImportsCheck = [ + "multihash" + ]; meta = with lib; { description = "Self describing hashes - for future proofing";