1{
2 buildPythonPackage,
3 fetchPypi,
4 lib,
5 setuptools,
6 deprecation,
7 packaging,
8}:
9buildPythonPackage rec {
10 pname = "deprecation-alias";
11 version = "0.3.3";
12 pyproject = true;
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-5zJm1MhmwEAHnXoEf5KsLNRotGCAMkht8f/X7xR+ZRU=";
17 };
18
19 build-system = [ setuptools ];
20
21 dependencies = [
22 deprecation
23 packaging
24 ];
25
26 postPatch = ''
27 substituteInPlace pyproject.toml \
28 --replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
29 '';
30
31 meta = {
32 description = "A wrapper around ‘deprecation’ providing support for deprecated aliases.";
33 homepage = "https://github.com/domdfcoding/deprecation-alias";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ tyberius-prime ];
36 };
37}