python311Packages.bitsandbytes: add changelog to meta
- equalize content - refactor
This commit is contained in:
@@ -43,13 +43,13 @@ let
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TimDettmers";
|
||||
repo = pname;
|
||||
repo = "bitsandbytes";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-PZxsFJ6WpfeQqRQrRRBZfZfNY6/TfJFLBeknX24OXcU=";
|
||||
};
|
||||
@@ -73,8 +73,16 @@ buildPythonPackage {
|
||||
else
|
||||
''make CUDA_VERSION=CPU cpuonly'';
|
||||
|
||||
nativeBuildInputs = [ setuptools wheel ] ++ lib.optionals torch.cudaSupport [ cuda-native-redist ];
|
||||
buildInputs = lib.optionals torch.cudaSupport [ cuda-redist ];
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
] ++ lib.optionals torch.cudaSupport [
|
||||
cuda-native-redist
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals torch.cudaSupport [
|
||||
cuda-redist
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
scipy
|
||||
@@ -88,8 +96,9 @@ buildPythonPackage {
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/TimDettmers/bitsandbytes";
|
||||
description = "8-bit CUDA functions for PyTorch";
|
||||
homepage = "https://github.com/TimDettmers/bitsandbytes";
|
||||
changelog = "https://github.com/TimDettmers/bitsandbytes/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user