472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
37 lines
808 B
Nix
37 lines
808 B
Nix
{
|
||
buildPythonPackage,
|
||
fetchPypi,
|
||
lib,
|
||
setuptools,
|
||
deprecation,
|
||
packaging,
|
||
}:
|
||
buildPythonPackage rec {
|
||
pname = "deprecation-alias";
|
||
version = "0.3.3";
|
||
pyproject = true;
|
||
|
||
src = fetchPypi {
|
||
inherit pname version;
|
||
hash = "sha256-5zJm1MhmwEAHnXoEf5KsLNRotGCAMkht8f/X7xR+ZRU=";
|
||
};
|
||
|
||
build-system = [ setuptools ];
|
||
|
||
dependencies = [
|
||
deprecation
|
||
packaging
|
||
];
|
||
|
||
postPatch = ''
|
||
substituteInPlace pyproject.toml \
|
||
--replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
|
||
'';
|
||
|
||
meta = {
|
||
description = "A wrapper around ‘deprecation’ providing support for deprecated aliases.";
|
||
homepage = "https://github.com/domdfcoding/deprecation-alias";
|
||
license = lib.licenses.mit;
|
||
maintainers = with lib.maintainers; [ tyberius-prime ];
|
||
};
|
||
}
|