Files
nixpkgs/pkgs/development/python-modules/deprecation/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

39 lines
900 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fetchpatch,
packaging,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "deprecation";
version = "2.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj";
};
patches = [
# fixes for python 3.10 test suite
(fetchpatch {
url = "https://github.com/briancurtin/deprecation/pull/57/commits/e13e23068cb8d653a02a434a159e8b0b7226ffd6.patch";
hash = "sha256-/5zr2V1s5ULUZnbLXsgyHxZH4m7/a27QYuqQt2Savc8=";
includes = [ "tests/test_deprecation.py" ];
})
];
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ unittestCheckHook ];
meta = with lib; {
description = "Library to handle automated deprecations";
homepage = "https://deprecation.readthedocs.io/";
license = licenses.asl20;
};
}