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