depot/third_party/nixpkgs/pkgs/development/python-modules/deprecation-alias/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

39 lines
836 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
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
];
nativeCheckInputs = [ ];
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 ];
};
}