at 22.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, factory_boy 4, faker 5, fetchPypi 6, pytest-cov 7, pytestCheckHook 8, tox 9}: 10 11buildPythonPackage rec { 12 pname = "tld"; 13 version = "0.12.6"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "69fed19d26bb3f715366fb4af66fdeace896c55c052b00e8aaba3a7b63f3e7f0"; 18 }; 19 20 checkInputs = [ 21 factory_boy 22 faker 23 pytest-cov 24 pytestCheckHook 25 tox 26 ]; 27 28 # these tests require network access, but disabledTestPaths doesn't work. 29 # the file needs to be `import`ed by another python test file, so it 30 # can't simply be removed. 31 preCheck = '' 32 echo > src/tld/tests/test_commands.py 33 ''; 34 pythonImportsCheck = [ "tld" ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/barseghyanartur/tld"; 38 description = "Extracts the top level domain (TLD) from the URL given"; 39 # https://github.com/barseghyanartur/tld/blob/master/README.rst#license 40 # MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later 41 license = with licenses; [ lgpl21Plus mpl11 gpl2Only ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}