depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-changelog-shortener/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

39 lines
969 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, tomli
, wheel
}:
buildPythonPackage rec {
pname = "setuptools-changelog-shortener";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fschulze";
repo = "setuptools-changelog-shortener";
rev = "refs/tags/${version}";
hash = "sha256-K8oVcX40K5j2CwQnulK55HykkEXAmOiUg4mZPg5T+YI=";
};
nativeBuildInputs = [
setuptools
tomli
wheel
];
# upstream has no tests
doCheck = false;
pythonImportsCheck = [ "setuptools_changelog_shortener" ];
meta = with lib; {
description = "Setuptools-changelog-shortener: add only newest changelog entries to long_description";
homepage = "https://github.com/fschulze/setuptools-changelog-shortener";
changelog = "https://github.com/fschulze/setuptools-changelog-shortener/blob/${src.rev}/README.rst#changelog";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}