python310Packages.tailscale: add changelog to meta

This commit is contained in:
Fabian Affolter 2023-01-09 18:39:07 +01:00
parent b3a1a8050f
commit 64a10f0b9b

View file

@ -21,10 +21,17 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "frenck";
repo = "python-tailscale";
rev = "v${version}";
sha256 = "sha256-gGDsVGsCBZi/pxD0cyH3+xrvHVBC+wJCcl/NGqsTqiE=";
rev = "refs/tags/v${version}";
hash = "sha256-gGDsVGsCBZi/pxD0cyH3+xrvHVBC+wJCcl/NGqsTqiE=";
};
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
nativeBuildInputs = [
poetry-core
];
@ -41,13 +48,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
pythonImportsCheck = [
"tailscale"
];
@ -55,6 +55,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python client for the Tailscale API";
homepage = "https://github.com/frenck/python-tailscale";
changelog = "https://github.com/frenck/python-tailscale/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};