1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 hypothesis,
6 pytestCheckHook,
7 unstableGitUpdater,
8}:
9
10buildPythonPackage {
11 pname = "senf";
12 version = "1.5.0-unstable-2024-11-26";
13
14 src = fetchFromGitHub {
15 owner = "quodlibet";
16 repo = "senf";
17 rev = "b32bb8091f7b46679a23b3f9e9a9157eaa53be95";
18 hash = "sha256-JoFmQkjau8e8EXiJbWS7vnv1FarwerO4vGInosxlNEM=";
19 };
20
21 nativeCheckInputs = [
22 hypothesis
23 pytestCheckHook
24 ];
25
26 disabledTests = [
27 # Both don't work even with HOME specified...
28 "test_getuserdir"
29 "test_expanduser_user"
30 ];
31
32 passthru.updateScript = unstableGitUpdater {
33 tagPrefix = "v";
34 };
35
36 pythonImportsCheck = [ "senf" ];
37
38 meta = {
39 description = "Consistent filename handling for all Python versions and platforms";
40 homepage = "https://senf.readthedocs.io/en/latest/";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ cab404 ];
43 };
44
45}