about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-02-03 14:44:09 +0100
committerGitHub <noreply@github.com>2023-02-03 14:44:09 +0100
commit8b10116e8eb937deae6d669c2ca32bad716127e7 (patch)
tree14f731f90a2b560f883b24554043f4820963e220
parent606337f4c7945ebde142d33ff6a5266907d74fcb (diff)
parent3cd742a408606f5edb5b44df95a6c6a4124e6a19 (diff)
Merge pull request #214325 from fabaff/tld-bump
python310Packages.tld: 0.12.6 -> 0.12.7
-rw-r--r--pkgs/development/python-modules/tld/default.nix25
1 files changed, 18 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/tld/default.nix b/pkgs/development/python-modules/tld/default.nix
index a19858c46e7b6..2166be0511720 100644
--- a/pkgs/development/python-modules/tld/default.nix
+++ b/pkgs/development/python-modules/tld/default.nix
@@ -4,34 +4,45 @@
 , faker
 , fetchPypi
 , pytestCheckHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "tld";
-  version = "0.12.6";
+  version = "0.12.7";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "69fed19d26bb3f715366fb4af66fdeace896c55c052b00e8aaba3a7b63f3e7f0";
+    hash = "sha256-tvdynhnODrx3ugpltw1iE665UsAf9gXhKZquX7diHF4=";
   };
 
   nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
+  checkInputs = [
     factory_boy
     faker
-    pytestCheckHook
   ];
 
-  # these tests require network access, but disabledTestPaths doesn't work.
-  # the file needs to be `import`ed by another python test file, so it
+  # These tests require network access, but disabledTestPaths doesn't work.
+  # the file needs to be `import`ed by another Python test file, so it
   # can't simply be removed.
   preCheck = ''
     echo > src/tld/tests/test_commands.py
   '';
-  pythonImportsCheck = [ "tld" ];
+
+  pythonImportsCheck = [
+    "tld"
+  ];
 
   meta = with lib; {
-    homepage = "https://github.com/barseghyanartur/tld";
     description = "Extracts the top level domain (TLD) from the URL given";
+    homepage = "https://github.com/barseghyanartur/tld";
+    changelog = "https://github.com/barseghyanartur/tld/blob/${version}/CHANGELOG.rst";
     # https://github.com/barseghyanartur/tld/blob/master/README.rst#license
     # MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later
     license = with licenses; [ lgpl21Plus mpl11 gpl2Only ];