python3Packages.py-multihash: 1.0.0 -> 2.0.1

https://github.com/multiformats/py-multihash/releases/tag/v2.0.1

The `variants` package is not in the list of requirements for py-multihash, so remove it.
Switch to `pytestCheckHook` for the tests instead of using `pytest`.
Also slightly change the Python version requirements check.
This commit is contained in:
Luflosi 2021-02-08 20:54:13 +01:00
parent 28430d1e51
commit 7a6d18c8e7
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

View file

@ -1,49 +1,44 @@
{ base58 { base58
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy27
, lib , lib
, morphys , morphys
, pytest , pytest-runner
, pytestcov , pytestCheckHook
, pytestrunner , pythonOlder
, six , six
, variants
, varint , varint
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "py-multihash"; pname = "py-multihash";
version = "1.0.0"; version = "2.0.1";
disabled = pythonOlder "3.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "multiformats"; owner = "multiformats";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "07qglrbgcb8sr9msqw2v7dqj9s4rs6nyvhdnx02i5w6xx5ibzi3z"; sha256 = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pytestrunner pytest-runner
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
base58 base58
morphys morphys
six six
variants
varint varint
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov
]; ];
pythonImportsCheck = [ "multihash" ]; pythonImportsCheck = [ "multihash" ];
disabled = isPy27;
meta = with lib; { meta = with lib; {
description = "Self describing hashes - for future proofing"; description = "Self describing hashes - for future proofing";
homepage = "https://github.com/multiformats/py-multihash"; homepage = "https://github.com/multiformats/py-multihash";