about summary refs log tree commit diff
path: root/pkgs/development/python-modules/beancount-docverif/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/beancount-docverif/default.nix')
-rw-r--r--pkgs/development/python-modules/beancount-docverif/default.nix23
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/beancount-docverif/default.nix b/pkgs/development/python-modules/beancount-docverif/default.nix
index e78db14aa2424..b53fab7c060a5 100644
--- a/pkgs/development/python-modules/beancount-docverif/default.nix
+++ b/pkgs/development/python-modules/beancount-docverif/default.nix
@@ -1,32 +1,41 @@
 {
   lib,
+  beancount,
   buildPythonPackage,
   fetchPypi,
-  setuptools-scm,
-  beancount,
   pytestCheckHook,
+  pythonOlder,
+  regex,
+  setuptools-scm,
 }:
 
 buildPythonPackage rec {
-  version = "1.0.1";
   pname = "beancount-docverif";
+  version = "1.0.1";
   pyproject = true;
 
+  disabled = pythonOlder "3.7";
+
   src = fetchPypi {
     pname = "beancount_docverif";
     inherit version;
     hash = "sha256-CFBv1FZP5JO+1MPnD86ttrO42zZlvE157zqig7s4HOg=";
   };
 
-  nativeBuildInputs = [ setuptools-scm ];
+  build-system = [ setuptools-scm ];
+
+  dependencies = [ beancount ];
 
-  propagatedBuildInputs = [ beancount ];
+  nativeCheckInputs = [
+    pytestCheckHook
+    regex
+  ];
 
-  nativeCheckInputs = [ pytestCheckHook ];
+  pythonImportsCheck = [ "beancount_docverif" ];
 
   meta = with lib; {
-    homepage = "https://github.com/siriobalmelli/beancount_docverif";
     description = "Document verification plugin for Beancount";
+    homepage = "https://github.com/siriobalmelli/beancount_docverif";
     longDescription = ''
       Docverif is the "Document Verification" plugin for beancount, fulfilling the following functions: