about summary refs log tree commit diff
path: root/pkgs/development/python-modules/character-encoding-utils/default.nix
blob: a677d8999e3752f1da20aed54a2cf9f77691bfa9 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatch-vcs,
  hatchling,
  pytestCheckHook,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "character-encoding-utils";
  version = "0.0.8";
  pyproject = true;

  disabled = pythonOlder "3.11";

  src = fetchPypi {
    pname = "character_encoding_utils";
    inherit version;
    hash = "sha256-UXX4L/x7fP37ZEFDCPc0KRNyx47xvwY0Jz+lfxzUulg=";
  };

  build-system = [
    hatch-vcs
    hatchling
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "character_encoding_utils" ];

  meta = {
    description = "Some character encoding utils";
    homepage = "https://github.com/TakWolf/character-encoding-utils";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ h7x4 ];
  };
}