Fabian Affolter 2024-09-23 08:26:03 +02:00
parent d218baf24f
commit 9261324372

View File

@ -3,36 +3,43 @@
arrow,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytest-datafiles,
pytest-vcr,
pytestCheckHook,
python-box,
pythonOlder,
responses,
requests,
responses,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "restfly";
version = "1.4.7";
format = "setuptools";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "stevemcgrath";
repo = pname;
rev = version;
hash = "sha256-PPXJHatJKve9fIjveVYRnTSIDHFmnSDWTnkgO91twJs=";
repo = "restfly";
rev = "refs/tags/${version}";
hash = "sha256-Zdn/hUvAZ9TaAWyDpNiEiA9mYDbWmiXBUa+IV/g8n2M=";
};
propagatedBuildInputs = [
requests
build-system = [ setuptools ];
dependencies = [
arrow
python-box
requests
typing-extensions
];
nativeCheckInputs = [
pytest-cov-stub
pytest-datafiles
pytest-vcr
pytestCheckHook
@ -49,7 +56,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python RESTfly API Library Framework";
homepage = "https://github.com/stevemcgrath/restfly";
license = with licenses; [ mit ];
changelog = "https://github.com/librestfly/restfly/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}