about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dyn/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/dyn/default.nix')
-rw-r--r--pkgs/development/python-modules/dyn/default.nix32
1 files changed, 17 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/dyn/default.nix b/pkgs/development/python-modules/dyn/default.nix
index c391250d95179..f16d9d4d55d74 100644
--- a/pkgs/development/python-modules/dyn/default.nix
+++ b/pkgs/development/python-modules/dyn/default.nix
@@ -1,33 +1,35 @@
-{ lib, buildPythonPackage, fetchPypi, pytest, pytest-cov, mock
-, pytest-xdist, cov-core, glibcLocales }:
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  pythonOlder,
+  setuptools,
+}:
 
 buildPythonPackage rec {
   pname = "dyn";
   version = "1.8.6";
-  format = "setuptools";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "sha256-933etYrKRgSqJfOMIuIDL4Uv4/RdSEFMNWFtW5qiPpA=";
+    hash = "sha256-933etYrKRgSqJfOMIuIDL4Uv4/RdSEFMNWFtW5qiPpA=";
   };
 
-  buildInputs = [ glibcLocales ];
+  build-system = [ setuptools ];
 
-  nativeCheckInputs = [
-    pytest
-    pytest-cov
-    mock
-    pytest-xdist
-    cov-core
-  ];
-  # Disable checks because they are not stateless and require internet access.
+  # Module has no tests
   doCheck = false;
 
-  LC_ALL="en_US.UTF-8";
+  pythonImportsCheck = [ "dyn" ];
 
   meta = with lib; {
     description = "Dynect dns lib";
-    homepage = "https://dyn.readthedocs.org/en/latest/intro.html";
+    homepage = "https://dyn.readthedocs.org";
+    changelog = "https://github.com/dyninc/dyn-python/blob/${version}/HISTORY.rst";
     license = licenses.bsd3;
+    maintainers = with maintainers; [ ];
   };
 }