about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py-multihash
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2021-02-08 20:54:13 +0100
committerLuflosi <luflosi@luflosi.de>2021-02-09 00:47:04 +0100
commit7a6d18c8e75d573d57cfafa64f91b7cbd85e5899 (patch)
tree52e68e288bb66bbb885810e12ae14e72d0a24269 /pkgs/development/python-modules/py-multihash
parent28430d1e51eeeea2a6d9acbb9d18b7417049c766 (diff)
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.
Diffstat (limited to 'pkgs/development/python-modules/py-multihash')
-rw-r--r--pkgs/development/python-modules/py-multihash/default.nix21
1 files changed, 8 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/py-multihash/default.nix b/pkgs/development/python-modules/py-multihash/default.nix
index 1b49ffa153991..73307c75b8b81 100644
--- a/pkgs/development/python-modules/py-multihash/default.nix
+++ b/pkgs/development/python-modules/py-multihash/default.nix
@@ -1,49 +1,44 @@
 { base58
 , buildPythonPackage
 , fetchFromGitHub
-, isPy27
 , lib
 , morphys
-, pytest
-, pytestcov
-, pytestrunner
+, pytest-runner
+, pytestCheckHook
+, pythonOlder
 , six
-, variants
 , varint
 }:
 
 buildPythonPackage rec {
   pname = "py-multihash";
-  version = "1.0.0";
+  version = "2.0.1";
+  disabled = pythonOlder "3.4";
 
   src = fetchFromGitHub {
     owner = "multiformats";
     repo = pname;
     rev = "v${version}";
-    sha256 = "07qglrbgcb8sr9msqw2v7dqj9s4rs6nyvhdnx02i5w6xx5ibzi3z";
+    sha256 = "sha256-z1lmSypGCMFWJNzNgV9hx/IStyXbpd5jvrptFpewuOA=";
   };
 
   nativeBuildInputs = [
-    pytestrunner
+    pytest-runner
   ];
 
   propagatedBuildInputs = [
     base58
     morphys
     six
-    variants
     varint
   ];
 
   checkInputs = [
-    pytest
-    pytestcov
+    pytestCheckHook
   ];
 
   pythonImportsCheck = [ "multihash" ];
 
-  disabled = isPy27;
-
   meta = with lib; {
     description = "Self describing hashes - for future proofing";
     homepage = "https://github.com/multiformats/py-multihash";