python312Packages.flask-allowed-hosts: 1.1.2 -> 1.2.0 (#361132)
[NixPkgs.git] / pkgs / development / python-modules / deprecation / default.nix
blob7c3715cbfe7851c1854102745ce386fb2a9b0d2e
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch,
6   packaging,
7   unittestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "deprecation";
12   version = "2.1.0";
13   format = "setuptools";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
18   };
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   ];
29   propagatedBuildInputs = [ packaging ];
31   nativeCheckInputs = [ unittestCheckHook ];
33   meta = with lib; {
34     description = "Library to handle automated deprecations";
35     homepage = "https://deprecation.readthedocs.io/";
36     license = licenses.asl20;
37   };