python311Packages.stravalib: refactor

This commit is contained in:
Fabian Affolter
2024-01-18 23:34:24 +01:00
parent cb1d8fd1f5
commit 2cd5685649
@@ -1,23 +1,23 @@
{ 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; [ ];
};
}