2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
scikit-learn,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "py-deprecate";
|
|
|
|
version = "0.3.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-05-18 14:49:53 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Borda";
|
|
|
|
repo = "pyDeprecate";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-84RmQvLxwtLPQk3hX7Q6eeJeejhrO3t+mc95W1E85Fg=";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
pytestCheckHook
|
|
|
|
scikit-learn
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "deprecate" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Module for marking deprecated functions or classes and re-routing to the new successors' instance. Used by torchmetrics";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://borda.github.io/pyDeprecate/";
|
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|