2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
|
|
|
, arrow
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-datafiles
|
|
|
|
, pytest-vcr
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-box
|
2022-01-26 04:04:25 +00:00
|
|
|
, pythonOlder
|
2022-04-03 18:54:34 +00:00
|
|
|
, responses
|
2021-04-05 15:23:46 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restfly";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.4.7";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stevemcgrath";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-21 18:38:19 +00:00
|
|
|
hash = "sha256-PPXJHatJKve9fIjveVYRnTSIDHFmnSDWTnkgO91twJs=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
arrow
|
|
|
|
python-box
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-datafiles
|
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
2022-04-03 18:54:34 +00:00
|
|
|
responses
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test requires network access
|
|
|
|
"test_session_ssl_error"
|
|
|
|
];
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"restfly"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python RESTfly API Library Framework";
|
|
|
|
homepage = "https://github.com/stevemcgrath/restfly";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|