12 buildPythonPackage rec {
13 pname = "py-multicodec";
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
20 owner = "multiformats";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-2aK+bfhqCMqSO+mtrHIfNQmQpQHpwd7yHseI/3O7Sp4=";
26 # Error when not substituting:
27 # Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
29 substituteInPlace setup.cfg \
30 --replace "[pytest]" "[tool:pytest]"
31 substituteInPlace setup.py \
32 --replace "'pytest-runner'," ""
35 propagatedBuildInputs = [
41 nativeCheckInputs = [ pytestCheckHook ];
43 pythonImportsCheck = [ "multicodec" ];
46 description = "Compact self-describing codecs";
47 homepage = "https://github.com/multiformats/py-multicodec";
48 license = licenses.mit;
49 maintainers = with maintainers; [ Luflosi ];