nixpkgs/pkgs/development/python-modules/iso3166/default.nix

28 lines
670 B
Nix
Raw Normal View History

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