Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 949 B view raw
1{ stdenv, fetchPypi, python }: 2 3python.pkgs.buildPythonPackage rec { 4 pname = "tld"; 5 version = "0.12.2"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "cf8410a7ed7b9477f563fa158dabef5117d8374cba55f65142ba0af6dcd15d4d"; 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}