python310Packages.clip-anytorch: init at 2.5.2
This commit is contained in:
parent
a1a072ee66
commit
1b28a9b9b8
57
pkgs/development/python-modules/clip-anytorch/default.nix
Normal file
57
pkgs/development/python-modules/clip-anytorch/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
, ftfy
|
||||||
|
, regex
|
||||||
|
, tqdm
|
||||||
|
, torch
|
||||||
|
, torchvision
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "clip-anytorch";
|
||||||
|
version = "2.5.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rom1504";
|
||||||
|
repo = "CLIP";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-EqVkpMQHawoCFHNupf49NrvLdGCq35wnYBpdP81Ztd4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
ftfy
|
||||||
|
regex
|
||||||
|
tqdm
|
||||||
|
torch
|
||||||
|
torchvision
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"clip"
|
||||||
|
];
|
||||||
|
|
||||||
|
# all tests require network access
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Contrastive Language-Image Pretraining";
|
||||||
|
homepage = "https://github.com/rom1504/CLIP";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = teams.tts.members;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1843,6 +1843,8 @@ self: super: with self; {
|
||||||
|
|
||||||
clip = callPackage ../development/python-modules/clip { };
|
clip = callPackage ../development/python-modules/clip { };
|
||||||
|
|
||||||
|
clip-anytorch = callPackage ../development/python-modules/clip-anytorch { };
|
||||||
|
|
||||||
cock = callPackage ../development/python-modules/cock { };
|
cock = callPackage ../development/python-modules/cock { };
|
||||||
|
|
||||||
click = callPackage ../development/python-modules/click { };
|
click = callPackage ../development/python-modules/click { };
|
||||||
|
|
Loading…
Reference in a new issue