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