23 inherit pname version;
26 disabled = pythonOlder "3.10";
28 src = fetchFromGitHub {
29 owner = "facebookresearch";
31 rev = "refs/tags/v${version}";
32 hash = "sha256-L2Rl/qL6l0OLAofygzJBGQdp/2ZrgDFarwZRjyAR3dw=";
35 # setup.py depends on ninja python dependency, but we have the binary in nixpkgs
37 substituteInPlace setup.py \
38 --replace 'setup_requires=["ninja"]' 'setup_requires=[]'
46 propagatedBuildInputs = [
59 # Some tests try to build distributed models, which doesn't work in the sandbox.
62 pythonImportsCheck = [ "fairscale" ];
65 description = "PyTorch extensions for high performance and large scale training";
67 homepage = "https://github.com/facebookresearch/fairscale";
68 changelog = "https://github.com/facebookresearch/fairscale/releases/tag/v${version}";
69 license = with licenses; [
74 maintainers = with maintainers; [ happysalada ];