python311Packages.py-multihash: remove pytest-runner

This commit is contained in:
Fabian Affolter
2023-06-08 22:05:29 +02:00
parent 4c52672699
commit f5df675dce
@@ -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";