Commit f5df675d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.py-multihash: remove pytest-runner

parent 4c526726
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
{ 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";