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=";
17 buildPythonPackage rec {
20 format = "setuptools";
22 disabled = pythonOlder "3.7";
24 src = fetchFromGitHub {
28 hash = "sha256-zJYtEIrsuHKPwnSoRjyZC/0rgAZoNMZ0Oh8gQcIb20Q=";
31 propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
40 # The table is already downloaded
41 export ISO4217_DOWNLOAD=0
42 # Copy the table file to satifiy the build process
43 cp -r ${table} $pname/table.xml
48 cp -r ${table} $out/${python.sitePackages}/$pname/table.xml
55 pythonImportsCheck = [
60 description = "ISO 4217 currency data package for Python";
61 homepage = "https://github.com/dahlia/iso4217";
62 license = with licenses; [ publicDomain ];
63 maintainers = with maintainers; [ fab ];