nixpkgs/pkgs/development/python-modules/restfly/default.nix

64 lines
1.2 KiB
Nix

{
lib,
arrow,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytest-datafiles,
pytest-vcr,
pytestCheckHook,
python-box,
pythonOlder,
requests,
responses,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "restfly";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stevemcgrath";
repo = "restfly";
rev = "refs/tags/${version}";
hash = "sha256-Zdn/hUvAZ9TaAWyDpNiEiA9mYDbWmiXBUa+IV/g8n2M=";
};
build-system = [ setuptools ];
dependencies = [
arrow
python-box
requests
typing-extensions
];
nativeCheckInputs = [
pytest-cov-stub
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";
changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}