Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / setuptools-changelog-shortener / default.nix
blobfef62dfbfbb9208b41a6e59c4b095813798e229f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , tomli
6 , wheel
7 }:
9 buildPythonPackage rec {
10   pname = "setuptools-changelog-shortener";
11   version = "0.2.0";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "fschulze";
16     repo = "setuptools-changelog-shortener";
17     rev = "refs/tags/${version}";
18     hash = "sha256-K8oVcX40K5j2CwQnulK55HykkEXAmOiUg4mZPg5T+YI=";
19   };
21   nativeBuildInputs = [
22     setuptools
23     tomli
24     wheel
25   ];
27   # upstream has no tests
28   doCheck = false;
30   pythonImportsCheck = [ "setuptools_changelog_shortener" ];
32   meta = with lib; {
33     description = "Setuptools-changelog-shortener: add only newest changelog entries to long_description";
34     homepage = "https://github.com/fschulze/setuptools-changelog-shortener";
35     changelog = "https://github.com/fschulze/setuptools-changelog-shortener/blob/${src.rev}/README.rst#changelog";
36     license = licenses.mit;
37     maintainers = with maintainers; [ natsukium ];
38   };