Loading pkgs/development/python-modules/xformers/default.nix +2 −10 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub , pythonRelaxDepsHook , which # runtime dependencies , numpy , torch , pyre-extensions # check dependencies , pytestCheckHook , pytest-cov Loading @@ -27,7 +25,7 @@ #, flash-attn }: let version = "0.03"; version = "0.0.22.post7"; in buildPythonPackage { pname = "xformers"; Loading @@ -40,7 +38,7 @@ buildPythonPackage { owner = "facebookresearch"; repo = "xformers"; rev = "refs/tags/v${version}"; hash = "sha256-G8f7tny5B8SAQ6+2uOjhY7nD0uOT4sskIwtTdwivQXo="; hash = "sha256-7lZi3+2dVDZJFYCUlxsyDU8t9qdnl+b2ERRXKA6Zp7U="; fetchSubmodules = true; }; Loading @@ -52,18 +50,12 @@ buildPythonPackage { ''; nativeBuildInputs = [ pythonRelaxDepsHook which ]; pythonRelaxDeps = [ "pyre-extensions" ]; propagatedBuildInputs = [ numpy torch pyre-extensions ]; pythonImportsCheck = [ "xformers" ]; Loading Loading
pkgs/development/python-modules/xformers/default.nix +2 −10 Original line number Diff line number Diff line Loading @@ -2,12 +2,10 @@ , buildPythonPackage , pythonOlder , fetchFromGitHub , pythonRelaxDepsHook , which # runtime dependencies , numpy , torch , pyre-extensions # check dependencies , pytestCheckHook , pytest-cov Loading @@ -27,7 +25,7 @@ #, flash-attn }: let version = "0.03"; version = "0.0.22.post7"; in buildPythonPackage { pname = "xformers"; Loading @@ -40,7 +38,7 @@ buildPythonPackage { owner = "facebookresearch"; repo = "xformers"; rev = "refs/tags/v${version}"; hash = "sha256-G8f7tny5B8SAQ6+2uOjhY7nD0uOT4sskIwtTdwivQXo="; hash = "sha256-7lZi3+2dVDZJFYCUlxsyDU8t9qdnl+b2ERRXKA6Zp7U="; fetchSubmodules = true; }; Loading @@ -52,18 +50,12 @@ buildPythonPackage { ''; nativeBuildInputs = [ pythonRelaxDepsHook which ]; pythonRelaxDeps = [ "pyre-extensions" ]; propagatedBuildInputs = [ numpy torch pyre-extensions ]; pythonImportsCheck = [ "xformers" ]; Loading