1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, scikit-learn
6}:
7
8let
9 pname = "py-deprecate";
10 version = "0.3.2";
11in
12buildPythonPackage {
13 inherit pname version;
14
15 src = fetchFromGitHub {
16 owner = "Borda";
17 repo = "pyDeprecate";
18 rev = "v${version}";
19 hash = "sha256-84RmQvLxwtLPQk3hX7Q6eeJeejhrO3t+mc95W1E85Fg=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 scikit-learn
25 ];
26
27 pythonImportsCheck = [ "deprecate" ];
28
29 meta = with lib; {
30 description = "A module for marking deprecated functions or classes and re-routing to the new successors' instance. Used by torchmetrics";
31 homepage = "https://borda.github.io/pyDeprecate/";
32 license = licenses.asl20;
33 maintainers = with maintainers; [
34 SomeoneSerge
35 ];
36 };
37}
38