mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
13f13b8302
Diff: https://github.com/deactivated/python-iso3166/compare/refs/tags/v2.0.2...v2.1.1 Changelog: https://github.com/deactivated/python-iso3166/blob/v2.1.1/CHANGES
38 lines
816 B
Nix
38 lines
816 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iso3166";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deactivated";
|
|
repo = "python-iso3166";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"iso3166"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Self-contained ISO 3166-1 country definitions";
|
|
homepage = "https://github.com/deactivated/python-iso3166";
|
|
changelog = "https://github.com/deactivated/python-iso3166/blob/v${version}/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zraexy ];
|
|
};
|
|
}
|