My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/py-deprecate/default.nix

39 lines
786 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, scikit-learn
, pytorch
}:
let
pname = "py-deprecate";
version = "0.3.2";
in
buildPythonPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "Borda";
repo = "pyDeprecate";
rev = "v${version}";
hash = "sha256-84RmQvLxwtLPQk3hX7Q6eeJeejhrO3t+mc95W1E85Fg=";
};
checkInputs = [
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
];
};
}