nixpkgs/pkgs/development/python-modules/plum-py/default.nix
Fabian Affolter 1ca636d15e
python311Packages.plum-py: add changelog to meta
- disable on unsupported Python releases
2023-05-18 22:18:17 +02:00

49 lines
956 B
Nix

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