1{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }: 2 3buildPythonPackage rec { 4 pname = "iso3166"; 5 version = "0.8"; 6 7 src = fetchFromGitHub { 8 owner = "deactivated"; 9 repo = "python-iso3166"; 10 # repo has no version tags 11 rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7"; 12 sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx"; 13 }; 14 15 buildInputs = [ pytest ]; 16 17 checkPhase = '' 18 py.test 19 ''; 20 21 meta = with stdenv.lib; { 22 homepage = https://github.com/deactivated/python-iso3166; 23 description = "Self-contained ISO 3166-1 country definitions"; 24 license = licenses.mit; 25 maintainers = with maintainers; [ zraexy ]; 26 }; 27}