about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tomli/default.nix
blob: 4204be03b94ec719d171d0cfb1a08baf4b532a0e (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytestCheckHook
, python-dateutil
}:

buildPythonPackage rec {
  pname = "tomli";
  version = "1.0.4";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "hukkin";
    repo = pname;
    rev = version;
    sha256 = "sha256-ld0PsYnxVH3RbLG/NpvLDj9UhAe+QgwCQVXgGgqh8kE=";
  };

  nativeBuildInputs = [ flit-core ];

  checkInputs = [
    pytestCheckHook
    python-dateutil
  ];

  pythonImportsCheck = [ "tomli" ];

  meta = with lib; {
    description = "A Python library for parsing TOML, fully compatible with TOML v1.0.0";
    homepage = "https://github.com/hukkin/tomli";
    license = licenses.mit;
    maintainers = with maintainers; [ veehaitch ];
  };
}