Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / deprecation / default.nix
blob9ea6e5c2c6dd640e67618203e0f52eefb619b586
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , packaging
6 , unittestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "deprecation";
11   version = "2.1.0";
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
16   };
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   ];
27   propagatedBuildInputs = [ packaging ];
29   nativeCheckInputs = [ unittestCheckHook ];
31   meta = with lib; {
32     description = "A library to handle automated deprecations";
33     homepage = "https://deprecation.readthedocs.io/";
34     license = licenses.asl20;
35   };