depot/third_party/nixpkgs/pkgs/development/python-modules/deprecated/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

41 lines
806 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, wrapt
, pytestCheckHook
, sphinxHook
}:
buildPythonPackage rec {
pname = "deprecated";
version = "1.2.13";
outputs = [ "out" "doc" ];
src = fetchFromGitHub {
owner = "tantale";
repo = "deprecated";
rev = "v${version}";
hash = "sha256-rCDUY/TVmJqhrxDah62lEhqpr05JNZSyiFNTlHvSnmw=";
};
nativeBuildInputs = [
sphinxHook
];
propagatedBuildInputs = [
wrapt
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "deprecated" ];
meta = with lib; {
homepage = "https://github.com/tantale/deprecated";
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
license = licenses.mit;
maintainers = with maintainers; [ tilpner ];
};
}