summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/senf/default.nix
blob: c2218e7385055b547b99e06e7466267e5a6e8960 (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
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  hypothesis,
  pytestCheckHook,
  unstableGitUpdater,
}:

buildPythonPackage {
  pname = "senf";
  version = "1.5.0-unstable-2024-11-26";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "quodlibet";
    repo = "senf";
    rev = "b32bb8091f7b46679a23b3f9e9a9157eaa53be95";
    hash = "sha256-JoFmQkjau8e8EXiJbWS7vnv1FarwerO4vGInosxlNEM=";
  };

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  disabledTests = [
    # Both don't work even with HOME specified...
    "test_getuserdir"
    "test_expanduser_user"
  ];

  passthru.updateScript = unstableGitUpdater {
    tagPrefix = "v";
  };

  pythonImportsCheck = [ "senf" ];

  meta = {
    description = "Consistent filename handling for all Python versions and platforms";
    homepage = "https://senf.readthedocs.io/en/latest/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ cab404 ];
  };

}