depot/third_party/nixpkgs/pkgs/development/python-modules/restfly/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

48 lines
872 B
Nix

{ lib
, arrow
, buildPythonPackage
, fetchFromGitHub
, pytest-datafiles
, pytest-vcr
, pytestCheckHook
, python-box
, requests
}:
buildPythonPackage rec {
pname = "restfly";
version = "1.4.2";
src = fetchFromGitHub {
owner = "stevemcgrath";
repo = pname;
rev = version;
sha256 = "sha256-1sLkjM6hRAbfrZEXP97N9ZDqpL255LC7JS1r2yOXG5E=";
};
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 ];
};
}