Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ 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}"; hash = "sha256-a7+RWBRRPI4f+wFeogkpgHi6AUp0FWu/b72coH0NMAE="; };
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 = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}