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