Files
nixpkgs/pkgs/development/python-modules/fixerio/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
pytestCheckHook,
httpretty,
responses,
}:
buildPythonPackage rec {
pname = "fixerio";
version = "1.0.0-alpha";
format = "setuptools";
src = fetchFromGitHub {
owner = "amatellanes";
repo = "fixerio";
rev = "v${version}";
sha256 = "009h1mys175xdyznn5bl980vly40544s4ph1zcgqwg2i2ic93gvb";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
httpretty
pytestCheckHook
responses
];
disabledTests = [
# tests require network access
"test_returns_historical_rates_for_symbols_passed_if_both"
"test_returns_historical_rates_for_symbols_passed_in_constructor"
"test_returns_historical_rates_for_symbols_passed_in_method"
"test_returns_latest_rates_for_symbols_passed_in_constructor"
"test_returns_latest_rates_for_symbols_passed_in_method"
"test_returns_latest_rates_for_symbols_passed_in_method_if_both"
];
pythonImportsCheck = [ "fixerio" ];
meta = {
description = "Python client for Fixer.io";
longDescription = ''
Fixer.io is a free JSON API for current and historical foreign
exchange rates published by the European Central Bank.
'';
homepage = "https://github.com/amatellanes/fixerio";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}