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