Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-02-14 12:19:51 +00:00
committed by GitHub
12 changed files with 244 additions and 30 deletions

View File

@@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, base58
, py-multibase
, py-multicodec
, morphys
, py-multihash
, hypothesis
}:
buildPythonPackage rec {
pname = "py-cid";
version = "0.3.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "ipld";
repo = pname;
rev = "v${version}";
sha256 = "sha256-aN7ee25ghKKa90+FoMDCdGauToePc5AzDLV3tONvh4U=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "base58>=1.0.2,<2.0" "base58>=1.0.2" \
--replace "py-multihash>=0.2.0,<1.0.0" "py-multihash>=0.2.0" \
--replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
base58
py-multibase
py-multicodec
morphys
py-multihash
];
checkInputs = [
pytestCheckHook
hypothesis
];
pythonImportsCheck = [ "cid" ];
meta = with lib; {
description = "Self-describing content-addressed identifiers for distributed systems implementation in Python";
homepage = "https://github.com/ipld/py-cid";
license = licenses.mit;
maintainers = with maintainers; [ Luflosi ];
};
}

View File

@@ -5,7 +5,6 @@
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-cov
, pytest-mock
, pytestCheckHook
, pythonOlder
@@ -13,19 +12,18 @@
buildPythonPackage rec {
pname = "pyzerproc";
version = "0.4.6";
version = "0.4.8";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emlove";
repo = pname;
rev = version;
sha256 = "1qlxvvy9fyff56dvc46nsd5ngkxqhdi7s4gwfndj7dn76j81srpq";
sha256 = "sha256-PNvkgjPcBbnETjWpVF3De9O9IprdpCke0nWvJ9Tju1M=";
};
# Remove pytest-runner, https://github.com/emlove/pyzerproc/pull/1
patchPhase = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
propagatedBuildInputs = [
@@ -34,11 +32,11 @@ buildPythonPackage rec {
];
checkInputs = [
asynctest
pytest-asyncio
pytest-cov
pytest-mock
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.8") [
asynctest
];
pythonImportsCheck = [ "pyzerproc" ];