python310Packages.limits 0 -> 1 attrpath: python310Packages.limits Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/y5mzd9666zgia0jb1kbzvvlxxb5n861v-packages.json.drv building '/nix/store/y5mzd9666zgia0jb1kbzvvlxxb5n861v-packages.json.drv'... Going to be running update for following packages: - python3.10-limits-2.7.0 Press Enter key to continue... Running update for: - python3.10-limits-2.7.0: UPDATING ... - python3.10-limits-2.7.0: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index 2b4499e29e8..be5ed159be6 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "limits"; - version = "2.7.0"; + version = "3.1.4"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -25,14 +25,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "alisaifee"; repo = pname; - rev = version; + rev = "refs/tags/${version}"; # Upstream uses versioneer, which relies on git attributes substitution. # This leads to non-reproducible archives on github. Remove the substituted # file here, and recreate it later based on our version info. postFetch = '' rm "$out/limits/_version.py" ''; - hash = "sha256-TBZElCogPtoR2qX1YjBgpYh99LhrvLHFtr2ogemo9/c="; + hash = "sha256-4gxN6rMKCiu3qNu1RD6c3iakrnAbzpQ7dUVoFixE1Ag="; }; propagatedBuildInputs = [ No auto update branch exists Old version 2.7.0" not present in staging derivation file with contents: { lib , buildPythonPackage , deprecated , fetchFromGitHub , hiro , packaging , pymemcache , pymongo , pytest-asyncio , pytest-lazy-fixture , pytestCheckHook , pythonOlder , redis , setuptools , typing-extensions }: buildPythonPackage rec { pname = "limits"; version = "2.8.0"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "alisaifee"; repo = pname; rev = "refs/tags/${version}"; # Upstream uses versioneer, which relies on git attributes substitution. # This leads to non-reproducible archives on github. Remove the substituted # file here, and recreate it later based on our version info. postFetch = '' rm "$out/limits/_version.py" ''; hash = "sha256-XGYwSe9KWw6PdxDjyqZ5kw5jlBxQR0VYacquwZ2z8rA="; }; propagatedBuildInputs = [ deprecated packaging setuptools typing-extensions ]; checkInputs = [ hiro pymemcache pymongo pytest-asyncio pytest-lazy-fixture pytestCheckHook redis ]; postPatch = '' substituteInPlace pytest.ini \ --replace "--cov=limits" "" \ --replace "-K" "" substituteInPlace setup.py \ --replace "versioneer.get_version()" "'${version}'" # Recreate _version.py, deleted at fetch time due to non-reproducibility. echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py ''; pythonImportsCheck = [ "limits" ]; pytestFlagsArray = [ # All other tests require a running Docker instance "tests/test_limits.py" "tests/test_ratelimit_parser.py" "tests/test_limit_granularities.py" ]; meta = with lib; { description = "Rate limiting using various strategies and storage backends such as redis & memcached"; homepage = "https://github.com/alisaifee/limits"; license = licenses.mit; maintainers = with maintainers; [ ]; }; }