python3Packages.py-deprecate: init at 0.3.2

...needed for pytorch-lightning
main
Someone Serge 2 years ago
parent 518cffd23d
commit f6abbe3b32
No known key found for this signature in database
GPG Key ID: 7B0E3B1390D61DA4
  1. 39
      pkgs/development/python-modules/py-deprecate/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,39 @@
{ 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 python 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
];
};
}

@ -5841,6 +5841,8 @@ in {
python-nvd3 = callPackage ../development/python-modules/python-nvd3 { };
py-deprecate = callPackage ../development/python-modules/py-deprecate { };
nwdiag = callPackage ../development/python-modules/nwdiag { };
oasatelematics = callPackage ../development/python-modules/oasatelematics { };

Loading…
Cancel
Save