mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
9261324372
Diff: https://github.com/stevemcgrath/restfly/compare/refs/tags/1.4.7...1.5.0 Changelog: https://github.com/librestfly/restfly/blob/1.5.0/CHANGELOG.md
64 lines
1.2 KiB
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 ];
|
|
};
|
|
}
|