python3Packages.fixerio: 0.1.1 -> 1.0.0-alpha
This commit is contained in:
parent
078e37f324
commit
f22c637c93
@ -4,23 +4,20 @@
|
|||||||
, requests
|
, requests
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, httpretty
|
, httpretty
|
||||||
|
, responses
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fixerio";
|
pname = "fixerio";
|
||||||
version = "0.1.1";
|
version = "1.0.0-alpha";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "amatellanes";
|
owner = "amatellanes";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1k9ss5jc7sbpkjd2774vbmvljny0wm2lrc8155ha8yk2048jsaxk";
|
sha256 = "009h1mys175xdyznn5bl980vly40544s4ph1zcgqwg2i2ic93gvb";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py --replace "requests==2.10.0" "requests"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
@ -28,6 +25,17 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [
|
checkInputs = [
|
||||||
httpretty
|
httpretty
|
||||||
pytestCheckHook
|
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" ];
|
pythonImportsCheck = [ "fixerio" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user