Merge pull request #336706 from fabaff/iso4217-bump

python312Packages.iso4217: 1.11 -> 1.12
This commit is contained in:
Fabian Affolter
2024-08-23 20:39:58 +02:00
committed by GitHub
@@ -7,29 +7,32 @@
pytestCheckHook,
python,
pythonOlder,
setuptools,
}:
let
table = fetchurl {
# See https://github.com/dahlia/iso4217/blob/main/setup.py#L19
url = "http://www.currency-iso.org/dam/downloads/lists/list_one.xml";
hash = "sha256-bp8uTMR1YRaI2cJLo0kdt9xD4nNaWK+LdlheWQ26qy0=";
url = "https://www.six-group.com/dam/download/financial-information/data-center/iso-currrency/lists/list-one.xml";
hash = "sha256-r1mRvI/qcOYOGKVzXHJGFdYxc+YlzpcdnWJExaF0Mp0=";
};
in
buildPythonPackage rec {
pname = "iso4217";
version = "1.11";
format = "setuptools";
version = "1.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "dahlia";
repo = pname;
rev = version;
hash = "sha256-zJYtEIrsuHKPwnSoRjyZC/0rgAZoNMZ0Oh8gQcIb20Q=";
repo = "iso4217";
rev = "refs/tags/${version}";
hash = "sha256-xOKfdk8Bn9f5oszS0IHUD6HgzL9VSa5GBZ28n4fvAck=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ importlib-resources ];
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.9") [ importlib-resources ];
nativeCheckInputs = [ pytestCheckHook ];