python3Packages.fixerio: init at 0.1.1

This commit is contained in:
Fabian Affolter 2021-01-07 09:56:25 +01:00
parent 210b6509ed
commit 337b3f232a
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
, httpretty
}:
buildPythonPackage rec {
pname = "fixerio";
version = "0.1.1";
src = fetchFromGitHub {
owner = "amatellanes";
repo = pname;
rev = "v${version}";
sha256 = "1k9ss5jc7sbpkjd2774vbmvljny0wm2lrc8155ha8yk2048jsaxk";
};
postPatch = ''
substituteInPlace setup.py --replace "requests==2.10.0" "requests"
'';
propagatedBuildInputs = [
requests
];
checkInputs = [
httpretty
pytestCheckHook
];
pythonImportsCheck = [ "fixerio" ];
meta = with lib; {
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 licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2149,6 +2149,8 @@ in {
fitbit = callPackage ../development/python-modules/fitbit { };
fixerio = callPackage ../development/python-modules/fixerio { };
fixtures = callPackage ../development/python-modules/fixtures { };
flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { };