40 lines
969 B
Nix
40 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 ];
|
||
|
};
|
||
|
}
|