summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-29 00:17:21 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-28 21:58:02 -0800
commitf8e1a69eb244a81d575ebd213d93b1a3ccce9f03 (patch)
tree80bc434f91c9364d0223e1f80ddcfe06c206f688 /pkgs
parentf8a4c5f83d20473e25492573a0b69053d3328853 (diff)
python3Packages.iso4217: 1.6 -> 1.7
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/iso4217/default.nix23
1 files changed, 17 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/iso4217/default.nix b/pkgs/development/python-modules/iso4217/default.nix
index 58d9ef5ffbd5..b1438f29a017 100644
--- a/pkgs/development/python-modules/iso4217/default.nix
+++ b/pkgs/development/python-modules/iso4217/default.nix
@@ -2,27 +2,34 @@
, buildPythonPackage
, fetchFromGitHub
, fetchurl
+, importlib-resources
, pytestCheckHook
, python
+, pythonOlder
}:
let
table = fetchurl {
- # See https://github.com/dahlia/iso4217/blob/main/setup.py#L18
+ # See https://github.com/dahlia/iso4217/blob/main/setup.py#L19
url = "http://www.currency-iso.org/dam/downloads/lists/list_one.xml";
- sha256 = "0frhicc7s8gqglr41hzx61fic3ckvr4sg773ahp1s28n5by3y7ac";
+ hash = "sha256-bp8uTMR1YRaI2cJLo0kdt9xD4nNaWK+LdlheWQ26qy0=";
};
in
buildPythonPackage rec {
pname = "iso4217";
- version = "1.6";
+ version = "1.7";
+ format = "setuptools";
src = fetchFromGitHub {
owner = "dahlia";
repo = pname;
rev = version;
- sha256 = "0mdpf5a0xr5lrcfgvqi1sdn7ln2w6pkc3lg0laqkbx5mhxky0fla";
+ hash = "sha256-Ih2l6bGM7i5TUkzJPkgx8EOOL4a3/qE28SUZS6M4sQc=";
};
+ propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
+ importlib-resources
+ ];
+
checkInputs = [
pytestCheckHook
];
@@ -39,9 +46,13 @@ buildPythonPackage rec {
cp -r ${table} $out/${python.sitePackages}/$pname/table.xml
'';
- pytestFlagsArray = [ "$pname/test.py" ];
+ pytestFlagsArray = [
+ "$pname/test.py"
+ ];
- pythonImportsCheck = [ "iso4217" ];
+ pythonImportsCheck = [
+ "iso4217"
+ ];
meta = with lib; {
description = "ISO 4217 currency data package for Python";