blob: 4d099fd594d3511a18396a6743d73f9b6942d3cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
baseline,
buildPythonPackage,
fetchFromGitLab,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "plum-py";
version = "0.8.6";
format = "setuptools";
src = fetchFromGitLab {
owner = "dangass";
repo = "plum";
tag = version;
hash = "sha256-gZSRqijKdjqOZe1+4aeycpCPsh6HC5sRbyVjgK+g4wM=";
};
postPatch = ''
# Drop broken version specifier
sed -i "/python_requires =/d" setup.cfg
'';
nativeCheckInputs = [
baseline
pytestCheckHook
];
pythonImportsCheck = [ "plum" ];
enabledTestPaths = [ "tests" ];
disabledTestPaths = [
# tests enum.IntFlag behaviour which has been disallowed in python 3.11.6
# https://gitlab.com/dangass/plum/-/issues/150
"tests/flag/test_flag_invalid.py"
];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ dnr ];
};
}
|