2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, pytest }:
|
2017-04-16 23:47:12 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildPythonPackage {
|
2017-04-13 21:14:00 +01:00
|
|
|
pname = "iso3166";
|
|
|
|
version = "0.8";
|
|
|
|
|
2017-04-16 23:47:12 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deactivated";
|
|
|
|
repo = "python-iso3166";
|
|
|
|
# repo has no version tags
|
|
|
|
rev = "f04e499447bbff10af701cf3dd81f6bcdf02f7d7";
|
|
|
|
sha256 = "0zs9za9dr2nl5srxir08yibmp6nffcapmzala0fgh8ny7y6rafrx";
|
2017-04-13 21:14:00 +01:00
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
checkInputs = [ pytest ];
|
2017-04-16 23:47:12 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/deactivated/python-iso3166";
|
2017-04-13 21:14:00 +01:00
|
|
|
description = "Self-contained ISO 3166-1 country definitions";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zraexy ];
|
|
|
|
};
|
|
|
|
}
|