841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
48 lines
873 B
Nix
48 lines
873 B
Nix
{ lib
|
|
, arrow
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-datafiles
|
|
, pytest-vcr
|
|
, pytestCheckHook
|
|
, python-box
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "restfly";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stevemcgrath";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0cmx15i57cxqw7naz8nkpqjckd6lpd2vszrkl82hvnajdimcd9wy";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
arrow
|
|
python-box
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-datafiles
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|