depot/third_party/nixpkgs/pkgs/development/python-modules/py-multibase/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

51 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, morphys
, pytestCheckHook
, python-baseconv
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "py-multibase";
version = "1.0.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-0oog78u2Huwo9VgnoL8ynHzqgP/9kzrsrqauhDEmf+Q=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "[pytest]" "" \
--replace "python_classes = *TestCase" ""
substituteInPlace setup.py \
--replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
morphys
python-baseconv
six
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"multibase"
];
meta = with lib; {
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 ];
};
}