d56f44df06
GitOrigin-RevId: bc4b9eef3ce3d5a90d8693e8367c9cbfc9fc1e13
56 lines
974 B
Nix
56 lines
974 B
Nix
{ lib
|
|
, arrow
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-datafiles
|
|
, pytest-vcr
|
|
, pytestCheckHook
|
|
, python-box
|
|
, pythonOlder
|
|
, responses
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "restfly";
|
|
version = "1.4.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stevemcgrath";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-nCubAn9AASnCsvlYdk4gmkoORRlsYEbJ8JmlT11xYWU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
arrow
|
|
python-box
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-datafiles
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
disabledTests = [
|
|
# Test requires network access
|
|
"test_session_ssl_error"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"restfly"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python RESTfly API Library Framework";
|
|
homepage = "https://github.com/stevemcgrath/restfly";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|