python311Packages.plum-py: add changelog to meta

- disable on unsupported Python releases
This commit is contained in:
Fabian Affolter 2023-05-18 22:18:17 +02:00 committed by GitHub
parent 916f3fdd4d
commit 1ca636d15e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,22 @@
{ lib { lib
, baseline
, buildPythonPackage , buildPythonPackage
, fetchFromGitLab , fetchFromGitLab
, isPy3k
, pytestCheckHook , pytestCheckHook
, baseline , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "plum-py"; pname = "plum-py";
version = "0.8.6"; version = "0.8.6";
disabled = !isPy3k; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "dangass"; owner = "dangass";
repo = "plum"; repo = "plum";
rev = version; rev = "refs/tags/${version}";
hash = "sha256-gZSRqijKdjqOZe1+4aeycpCPsh6HC5sRbyVjgK+g4wM="; hash = "sha256-gZSRqijKdjqOZe1+4aeycpCPsh6HC5sRbyVjgK+g4wM=";
}; };
@ -23,20 +25,23 @@ buildPythonPackage rec {
sed -i "/python_requires =/d" setup.cfg sed -i "/python_requires =/d" setup.cfg
''; '';
pythonImportsCheck = [ "plum" ];
nativeCheckInputs = [ nativeCheckInputs = [
baseline baseline
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [
"plum"
];
pytestFlagsArray = [ pytestFlagsArray = [
"tests" "tests"
]; ];
meta = with lib; { meta = with lib; {
description = "Classes and utilities for packing/unpacking bytes"; description = "Classes and utilities for packing/unpacking bytes";
homepage = "https://plum-py.readthedocs.io/en/latest/index.html"; homepage = "https://plum-py.readthedocs.io/";
changelog = "https://gitlab.com/dangass/plum/-/blob/${version}/docs/release_notes.rst";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dnr ]; maintainers = with maintainers; [ dnr ];
}; };