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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
710 B
Nix
Raw Normal View History

2021-07-09 20:24:28 +00:00
{ lib
, fetchFromGitHub
, buildPythonPackage
, pytestCheckHook
, pythonOlder
2021-07-09 20:24:28 +00:00
}:
2021-07-09 20:24:28 +00:00
buildPythonPackage rec {
2017-04-13 20:14:00 +00:00
pname = "iso3166";
version = "2.0.2";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-04-13 20:14:00 +00:00
src = fetchFromGitHub {
owner = "deactivated";
repo = "python-iso3166";
rev = version;
hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0=";
2017-04-13 20:14:00 +00:00
};
nativeCheckInputs = [
2021-07-09 20:24:28 +00:00
pytestCheckHook
];
pythonImportsCheck = [
"iso3166"
];
meta = with lib; {
2017-04-13 20:14:00 +00:00
description = "Self-contained ISO 3166-1 country definitions";
homepage = "https://github.com/deactivated/python-iso3166";
2017-04-13 20:14:00 +00:00
license = licenses.mit;
maintainers = with maintainers; [ zraexy ];
};
}