Merge pull request #112518 from Luflosi/add-py-multicodec

python3Packages.py-multicodec: init at 0.2.1
This commit is contained in:
Sandro 2021-02-10 14:33:42 +01:00 committed by GitHub
commit d86ffe0316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-runner
, pytestCheckHook
, pythonOlder
, morphys
, six
, varint
}:
buildPythonPackage rec {
pname = "py-multicodec";
version = "0.2.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "multiformats";
repo = pname;
rev = "v${version}";
sha256 = "sha256-2aK+bfhqCMqSO+mtrHIfNQmQpQHpwd7yHseI/3O7Sp4=";
};
# Error when not substituting:
# Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
postPatch = ''
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
'';
nativeBuildInputs = [
pytest-runner
];
propagatedBuildInputs = [
varint
six
morphys
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "multicodec" ];
meta = with lib; {
description = "Compact self-describing codecs";
homepage = "https://github.com/multiformats/py-multicodec";
license = licenses.mit;
maintainers = with maintainers; [ Luflosi ];
};
}

View File

@ -5666,6 +5666,8 @@ in {
py-multibase = callPackage ../development/python-modules/py-multibase { };
py-multicodec = callPackage ../development/python-modules/py-multicodec { };
py-multihash = callPackage ../development/python-modules/py-multihash { };
pymumble = callPackage ../development/python-modules/pymumble { };