python3Packages.deprecated: switch to pytestCheckHook
This commit is contained in:
parent
c73570b668
commit
bcfd18344f
1 changed files with 14 additions and 6 deletions
|
@ -2,24 +2,32 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, wrapt
|
, wrapt
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "Deprecated";
|
pname = "deprecated";
|
||||||
version = "1.2.13";
|
version = "1.2.13";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "Deprecated";
|
||||||
|
inherit version;
|
||||||
sha256 = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440=";
|
sha256 = "sha256-Q6xTNdqQwxwkugKK9TapHUHVP55pAd2wIbzFcs5E440=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ wrapt ];
|
propagatedBuildInputs = [
|
||||||
checkInputs = [ pytest ];
|
wrapt
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "deprecated" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/tantale/deprecated";
|
homepage = "https://github.com/tantale/deprecated";
|
||||||
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
|
description = "Python @deprecated decorator to deprecate old python classes, functions or methods";
|
||||||
platforms = platforms.all;
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ tilpner ];
|
maintainers = with maintainers; [ tilpner ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue