mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge pull request #236712 from fabaff/py-multibase-pytest-runner
python311Packages.py-multibase: remove pytest-runner
This commit is contained in:
commit
d72e92bd9d
@ -1,45 +1,50 @@
|
||||
{ buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, lib
|
||||
, morphys
|
||||
, pytest
|
||||
, pytest-runner
|
||||
, pytestCheckHook
|
||||
, python-baseconv
|
||||
, pythonOlder
|
||||
, six
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "py-multibase";
|
||||
version = "1.0.3";
|
||||
disabled = isPy27;
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version ;
|
||||
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
|
||||
inherit pname version;
|
||||
hash = "sha256-0oog78u2Huwo9VgnoL8ynHzqgP/9kzrsrqauhDEmf+Q=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "[pytest]" ""
|
||||
substituteInPlace setup.cfg --replace "python_classes = *TestCase" ""
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "[pytest]" "" \
|
||||
--replace "python_classes = *TestCase" ""
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
morphys
|
||||
six
|
||||
python-baseconv
|
||||
six
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"multibase"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings";
|
||||
description = "Module for distinguishing base encodings and other simple string encodings";
|
||||
homepage = "https://github.com/multiformats/py-multibase";
|
||||
changelog = "https://github.com/multiformats/py-multibase/blob/v${version}/HISTORY.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rakesh4g ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user