Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 816 B view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "iso3166"; 10 version = "2.1.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "deactivated"; 17 repo = "python-iso3166"; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0="; 20 }; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pythonImportsCheck = [ 27 "iso3166" 28 ]; 29 30 meta = with lib; { 31 description = "Self-contained ISO 3166-1 country definitions"; 32 homepage = "https://github.com/deactivated/python-iso3166"; 33 changelog = "https://github.com/deactivated/python-iso3166/blob/v${version}/CHANGES"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ zraexy ]; 36 }; 37}