depot/third_party/nixpkgs/pkgs/development/python-modules/py-deprecate/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
801 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 = "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 ];
};
}