depot/third_party/nixpkgs/pkgs/development/python-modules/iso3166/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
670 B
Nix

{ stdenv, fetchFromGitHub, buildPythonPackage, pytest }:
buildPythonPackage {
pname = "iso3166";
version = "0.8";
src = fetchFromGitHub {
owner = "deactivated";
repo = "python-iso3166";
# repo has no version tags
rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7";
sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
};
checkInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
homepage = "https://github.com/deactivated/python-iso3166";
description = "Self-contained ISO 3166-1 country definitions";
license = licenses.mit;
maintainers = with maintainers; [ zraexy ];
};
}