nixpkgs/pkgs/applications/version-management/sapling
Matthew "strager" Glazar c60afb9cbe sapling: fix build
Nixpkgs commit 451c6321 upgraded setuptools from version 65.0.3 to
version 67.4.0. This upgrade introduced a breaking change in
setuptools [1] which causes the Sapling package's build to fail:

    setuptools.extern.packaging.version.InvalidVersion: Invalid version: '0.2.20230124-180750-hf8cd450a'

This is an upstream issue [2]. For now, work around this issue in
Nixpkgs by truncating Sapling's version number.

Before 451c6321:

    $ nix-env -q sapling
    sapling-0.2.20230228-144002-h9440b05e

    $ sl --version
    Sapling 0.2.20230228-144002-h9440b05e

After this patch:

    $ nix-env -q sapling
    sapling-0.2.20230228-144002-h9440b05e

    $ sl --version
    Sapling 0.2.20230228

Refs: 451c632147

[1] be6c0218bc/CHANGES.rst (v6600)
[2] https://github.com/facebook/sapling/issues/571
2023-03-18 15:17:53 -05:00
..
Cargo.lock sapling: 0.2.20230124-180750-hf8cd450a -> 0.2.20230228-144002-h9440b05e 2023-03-06 12:47:10 -06:00
default.nix sapling: fix build 2023-03-18 15:17:53 -05:00
deps.json sapling: 0.2.20230124-180750-hf8cd450a -> 0.2.20230228-144002-h9440b05e 2023-03-06 12:47:10 -06:00
gen-deps.py