504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
39 lines
807 B
Nix
39 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, scikit-learn
|
|
}:
|
|
|
|
let
|
|
pname = "py-deprecate";
|
|
version = "0.3.2";
|
|
format = "setuptools";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Borda";
|
|
repo = "pyDeprecate";
|
|
rev = "v${version}";
|
|
hash = "sha256-84RmQvLxwtLPQk3hX7Q6eeJeejhrO3t+mc95W1E85Fg=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
scikit-learn
|
|
];
|
|
|
|
pythonImportsCheck = [ "deprecate" ];
|
|
|
|
meta = with lib; {
|
|
description = "A module for marking deprecated functions or classes and re-routing to the new successors' instance. Used by torchmetrics";
|
|
homepage = "https://borda.github.io/pyDeprecate/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [
|
|
SomeoneSerge
|
|
];
|
|
};
|
|
}
|
|
|