python313Packages.publicsuffixlist: 1.0.2.20250122 -> 1.0.2.20250124 (#376319)
[NixPkgs.git] / pkgs / development / python-modules / ftfy / default.nix
blob03184eb9e2e4b1dd025415d5ce2f736f8d7bce4f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   hatchling,
10   # dependencies
11   wcwidth,
13   # tests
14   pytestCheckHook,
15   versionCheckHook,
18 buildPythonPackage rec {
19   pname = "ftfy";
20   version = "6.3.1";
21   pyproject = true;
23   disabled = pythonOlder "3.9";
25   src = fetchFromGitHub {
26     owner = "rspeer";
27     repo = "python-ftfy";
28     tag = "v${version}";
29     hash = "sha256-TmwDJeUDcF+uOB2X5tMmnf9liCI9rP6dYJVmJoaqszo=";
30   };
32   build-system = [ hatchling ];
34   dependencies = [ wcwidth ];
36   pythonImportsCheck = [ "ftfy" ];
38   nativeCheckInputs = [
39     versionCheckHook
40     pytestCheckHook
41   ];
43   preCheck = ''
44     export PATH=$out/bin:$PATH
45   '';
47   meta = with lib; {
48     changelog = "https://github.com/rspeer/python-ftfy/blob/${src.rev}/CHANGELOG.md";
49     description = "Given Unicode text, make its representation consistent and possibly less broken";
50     mainProgram = "ftfy";
51     homepage = "https://github.com/LuminosoInsight/python-ftfy";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ aborsu ];
54   };