Commit 92613243 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent d218baf2
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
@@ -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 ];
  };
}