nixpkgs/pkgs/development/python-modules/rotary-embedding-torch/default.nix

49 lines
861 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
, wheel
# dependencies
, einops
, torch
}:
buildPythonPackage rec {
pname = "rotary-embedding-torch";
version = "0.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "lucidrains";
repo = "rotary-embedding-torch";
rev = version;
hash = "sha256-EozW8J1i/2ym1hwUMciaWVtp7kSWfG+mC5RkWLJdK3g=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
einops
torch
];
pythonImportsCheck = [
"rotary_embedding_torch"
];
doCheck = false; # no tests
meta = with lib; {
description = "Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch";
homepage = "https://github.com/lucidrains/rotary-embedding-torch";
license = licenses.mit;
maintainers = teams.tts.members;
};
}