python3Packages.iso4217: 1.6 -> 1.7

authored by

Fabian Affolter and committed by
Jonathan Ringer
f8e1a69e f8a4c5f8

+17 -6
+17 -6
pkgs/development/python-modules/iso4217/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , fetchurl 5 + , importlib-resources 5 6 , pytestCheckHook 6 7 , python 8 + , pythonOlder 7 9 }: 8 10 let 9 11 table = fetchurl { 10 - # See https://github.com/dahlia/iso4217/blob/main/setup.py#L18 12 + # See https://github.com/dahlia/iso4217/blob/main/setup.py#L19 11 13 url = "http://www.currency-iso.org/dam/downloads/lists/list_one.xml"; 12 - sha256 = "0frhicc7s8gqglr41hzx61fic3ckvr4sg773ahp1s28n5by3y7ac"; 14 + hash = "sha256-bp8uTMR1YRaI2cJLo0kdt9xD4nNaWK+LdlheWQ26qy0="; 13 15 }; 14 16 in 15 17 buildPythonPackage rec { 16 18 pname = "iso4217"; 17 - version = "1.6"; 19 + version = "1.7"; 20 + format = "setuptools"; 18 21 19 22 src = fetchFromGitHub { 20 23 owner = "dahlia"; 21 24 repo = pname; 22 25 rev = version; 23 - sha256 = "0mdpf5a0xr5lrcfgvqi1sdn7ln2w6pkc3lg0laqkbx5mhxky0fla"; 26 + hash = "sha256-Ih2l6bGM7i5TUkzJPkgx8EOOL4a3/qE28SUZS6M4sQc="; 24 27 }; 25 28 29 + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ 30 + importlib-resources 31 + ]; 32 + 26 33 checkInputs = [ 27 34 pytestCheckHook 28 35 ]; ··· 39 46 cp -r ${table} $out/${python.sitePackages}/$pname/table.xml 40 47 ''; 41 48 42 - pytestFlagsArray = [ "$pname/test.py" ]; 49 + pytestFlagsArray = [ 50 + "$pname/test.py" 51 + ]; 43 52 44 - pythonImportsCheck = [ "iso4217" ]; 53 + pythonImportsCheck = [ 54 + "iso4217" 55 + ]; 45 56 46 57 meta = with lib; { 47 58 description = "ISO 4217 currency data package for Python";