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