about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mnemonic/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/mnemonic/default.nix')
-rw-r--r--pkgs/development/python-modules/mnemonic/default.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/mnemonic/default.nix b/pkgs/development/python-modules/mnemonic/default.nix
index ba5fe3dc03c3f..4250e048430e3 100644
--- a/pkgs/development/python-modules/mnemonic/default.nix
+++ b/pkgs/development/python-modules/mnemonic/default.nix
@@ -1,21 +1,25 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pytestCheckHook
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytestCheckHook,
+  poetry-core,
 }:
 
 buildPythonPackage rec {
   pname = "mnemonic";
-  version = "0.20";
-  format = "setuptools";
+  version = "0.21";
+  pyproject = true;
 
   src = fetchFromGitHub {
     owner = "trezor";
-    repo = "python-${pname}";
+    repo = "python-mnemonic";
     rev = "v${version}";
-    hash = "sha256-YYgWlYfVd1iALOziaUI8uVYjJDCIVk/dXcUmJd2jcvQ=";
+    hash = "sha256-D1mS/JQhefYmwrShfWR9SdiGsBUM+jmuCkfWix9tDOU=";
   };
 
+  build-system = [ poetry-core ];
+
   nativeCheckInputs = [ pytestCheckHook ];
 
   pythonImportsCheck = [ "mnemonic" ];
@@ -24,6 +28,9 @@ buildPythonPackage rec {
     description = "Reference implementation of BIP-0039";
     homepage = "https://github.com/trezor/python-mnemonic";
     license = licenses.mit;
-    maintainers = with maintainers; [ np prusnak ];
+    maintainers = with maintainers; [
+      np
+      prusnak
+    ];
   };
 }