Merge pull request #108645 from fabaff/fixerio
This commit is contained in:
commit
27abed1e27
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -256,7 +256,7 @@
|
||||||
"fireservicerota" = ps: with ps; [ ]; # missing inputs: pyfireservicerota
|
"fireservicerota" = ps: with ps; [ ]; # missing inputs: pyfireservicerota
|
||||||
"firmata" = ps: with ps; [ ]; # missing inputs: pymata-express
|
"firmata" = ps: with ps; [ ]; # missing inputs: pymata-express
|
||||||
"fitbit" = ps: with ps; [ aiohttp-cors fitbit ];
|
"fitbit" = ps: with ps; [ aiohttp-cors fitbit ];
|
||||||
"fixer" = ps: with ps; [ ]; # missing inputs: fixerio
|
"fixer" = ps: with ps; [ fixerio ];
|
||||||
"fleetgo" = ps: with ps; [ ]; # missing inputs: ritassist
|
"fleetgo" = ps: with ps; [ ]; # missing inputs: ritassist
|
||||||
"flexit" = ps: with ps; [ pymodbus ]; # missing inputs: pyflexit
|
"flexit" = ps: with ps; [ pymodbus ]; # missing inputs: pyflexit
|
||||||
"flic" = ps: with ps; [ ]; # missing inputs: pyflic-homeassistant
|
"flic" = ps: with ps; [ ]; # missing inputs: pyflic-homeassistant
|
||||||
|
|
|
@ -2157,6 +2157,8 @@ in {
|
||||||
|
|
||||||
fitbit = callPackage ../development/python-modules/fitbit { };
|
fitbit = callPackage ../development/python-modules/fitbit { };
|
||||||
|
|
||||||
|
fixerio = callPackage ../development/python-modules/fixerio { };
|
||||||
|
|
||||||
fixtures = callPackage ../development/python-modules/fixtures { };
|
fixtures = callPackage ../development/python-modules/fixtures { };
|
||||||
|
|
||||||
flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { };
|
flake8-blind-except = callPackage ../development/python-modules/flake8-blind-except { };
|
||||||
|
|
Loading…
Reference in New Issue