2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-01-13 20:06:32 +00:00
|
|
|
, fetchpatch
|
|
|
|
, packaging
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deprecation";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "2.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
patches = [
|
2022-01-13 20:06:32 +00:00
|
|
|
# fixes for python 3.10 test suite
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/briancurtin/deprecation/pull/57/commits/e13e23068cb8d653a02a434a159e8b0b7226ffd6.patch";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-/5zr2V1s5ULUZnbLXsgyHxZH4m7/a27QYuqQt2Savc8=";
|
2022-01-13 20:06:32 +00:00
|
|
|
includes = [ "tests/test_deprecation.py" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ packaging ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to handle automated deprecations";
|
|
|
|
homepage = "https://deprecation.readthedocs.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|