Merge pull request #284259 from sikmir/stravalib

python3Packages.stravalib: mark unbroken

authored by Nikolay Korotkiy and committed by GitHub 724adc7a bfda1200

+14 -9
+14 -9
pkgs/development/python-modules/stravalib/default.nix
··· 1 { lib 2 , arrow 3 , buildPythonPackage 4 - , fetchPypi 5 , pint 6 - , pydantic 7 , pythonOlder 8 , pytz 9 , requests ··· 19 20 disabled = pythonOlder "3.9"; 21 22 - src = fetchPypi { 23 - inherit pname version; 24 - hash = "sha256-OEdMRg3KjUrXt/CgJgsUqa/sVFAE0JONNZg5MBKtxmY="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 setuptools-scm ··· 32 propagatedBuildInputs = [ 33 arrow 34 pint 35 - pydantic 36 pytz 37 requests 38 responses ··· 50 homepage = "https://github.com/stravalib/stravalib"; 51 changelog = "https://github.com/stravalib/stravalib/releases/tag/v${version}"; 52 license = licenses.asl20; 53 - maintainers = with maintainers; [ ]; 54 - # Support for pydantic > 2, https://github.com/stravalib/stravalib/issues/379 55 - broken = versionAtLeast pydantic.version "2"; 56 }; 57 }
··· 1 { lib 2 , arrow 3 , buildPythonPackage 4 + , fetchFromGitHub 5 , pint 6 + , pydantic_1 # use pydantic 2 on next release 7 , pythonOlder 8 , pytz 9 , requests ··· 19 20 disabled = pythonOlder "3.9"; 21 22 + src = fetchFromGitHub { 23 + owner = "stravalib"; 24 + repo = "stravalib"; 25 + rev = "v${version}"; 26 + hash = "sha256-EQcLDU9id/DpUZKMI9prCJC9zEK1CuhOtSB4FAWLg/g="; 27 }; 28 29 + postPatch = '' 30 + # Remove on next release 31 + sed -i 's/pydantic==1.10.9/pydantic/' pyproject.toml 32 + ''; 33 + 34 nativeBuildInputs = [ 35 setuptools 36 setuptools-scm ··· 39 propagatedBuildInputs = [ 40 arrow 41 pint 42 + pydantic_1 43 pytz 44 requests 45 responses ··· 57 homepage = "https://github.com/stravalib/stravalib"; 58 changelog = "https://github.com/stravalib/stravalib/releases/tag/v${version}"; 59 license = licenses.asl20; 60 + maintainers = with maintainers; [ sikmir ]; 61 }; 62 }