Commit 2cd56856 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.stravalib: refactor

parent cb1d8fd1
Loading
Loading
Loading
Loading
+18 −20
Original line number Diff line number Diff line
{ lib
, arrow
, buildPythonPackage
, fetchPypi
, nose
, setuptools
, setuptools-scm
, wheel
, arrow
, requests
, units
, pint
, pydantic
, pythonOlder
, pytz
, six
, requests
, responses
, setuptools
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "stravalib";
  version = "1.5";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    inherit pname version;
@@ -27,31 +27,29 @@ buildPythonPackage rec {
  nativeBuildInputs = [
    setuptools
    setuptools-scm
    wheel
  ];

  nativeCheckInputs = [
    nose
  ];

  propagatedBuildInputs = [
    arrow
    requests
    units
    pint
    pydantic
    pytz
    six
    requests
    responses
  ];

  # tests require network access
  # testing strava api
  # Tests require network access, testing strava API
  doCheck = false;

  pythonImportsCheck = [
    "stravalib"
  ];

  meta = with lib; {
    description = "Python library for interacting with Strava v3 REST API";
    homepage = "https://github.com/stravalib/stravalib";
    changelog = "https://github.com/stravalib/stravalib/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = [ ];
    maintainers = with maintainers; [ ];
  };
}