1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, packaging
6, unittestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "deprecation";
11 version = "2.1.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
16 };
17
18 patches = [
19 # fixes for python 3.10 test suite
20 (fetchpatch {
21 url = "https://github.com/briancurtin/deprecation/pull/57/commits/e13e23068cb8d653a02a434a159e8b0b7226ffd6.patch";
22 hash = "sha256-/5zr2V1s5ULUZnbLXsgyHxZH4m7/a27QYuqQt2Savc8=";
23 includes = [ "tests/test_deprecation.py" ];
24 })
25 ];
26
27 propagatedBuildInputs = [ packaging ];
28
29 nativeCheckInputs = [ unittestCheckHook ];
30
31 meta = with lib; {
32 description = "A library to handle automated deprecations";
33 homepage = "https://deprecation.readthedocs.io/";
34 license = licenses.asl20;
35 };
36}