11 buildPythonPackage rec {
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-k93l4cBL3xhEl26uRAcGN50h9KsjW3PAXXSD4HT7Vik=";
24 sed -i "/--cov/d" pytest.ini
27 nativeCheckInputs = [ pytestCheckHook ];
34 # These tests require network access, but disabledTestPaths doesn't work.
35 # the file needs to be `import`ed by another Python test file, so it
36 # can't simply be removed.
38 echo > src/tld/tests/test_commands.py
41 pythonImportsCheck = [ "tld" ];
44 description = "Extracts the top level domain (TLD) from the URL given";
45 mainProgram = "update-tld-names";
46 homepage = "https://github.com/barseghyanartur/tld";
47 changelog = "https://github.com/barseghyanartur/tld/blob/${version}/CHANGELOG.rst";
48 # https://github.com/barseghyanartur/tld/blob/master/README.rst#license
49 # MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later
50 license = with licenses; [
55 maintainers = with maintainers; [ fab ];