nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 39 lines 947 B view raw
1{ stdenv, fetchPypi, python }: 2 3python.pkgs.buildPythonPackage rec { 4 pname = "tld"; 5 version = "0.11.9"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "c5fe79df74b68ebc33406dfadc69f6484dee8005035a129fdb40b8fabfd06e9f"; 10 }; 11 12 propagatedBuildInputs = with python.pkgs; [ six ]; 13 checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook]; 14 15 # https://github.com/barseghyanartur/tld/issues/54 16 disabledTests = [ 17 "test_1_update_tld_names" 18 "test_1_update_tld_names_command" 19 "test_2_update_tld_names_module" 20 ]; 21 22 preCheck = '' 23 export PATH="$PATH:$out/bin" 24 ''; 25 26 dontUseSetuptoolsCheck = true; 27 28 pythonImportsCheck = [ 29 "tld" 30 ]; 31 32 meta = with stdenv.lib; { 33 homepage = https://github.com/barseghyanartur/tld; 34 description = "Extracts the top level domain (TLD) from the URL given"; 35 license = licenses.lgpl21; 36 maintainers = with maintainers; [ genesis ]; 37 }; 38 39}