mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
37 lines
706 B
Nix
37 lines
706 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iso3166";
|
|
version = "2.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deactivated";
|
|
repo = "python-iso3166";
|
|
rev = version;
|
|
sha256 = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"iso3166"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Self-contained ISO 3166-1 country definitions";
|
|
homepage = "https://github.com/deactivated/python-iso3166";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zraexy ];
|
|
};
|
|
}
|