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