about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/tomlkit/default.nix
blob: fa978be73bbd276fde2c985ebaea7e6ad7564478 (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
40
41
{ lib
, buildPythonPackage
, fetchPypi

# build-system
, poetry-core

# tests
, pytestCheckHook
, pyyaml
}:

buildPythonPackage rec {
  pname = "tomlkit";
  version = "0.12.3";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-dbr1AS0GUB8HvuW/joAbnzQ+eqxaklgfIPgM5jLmtaQ=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  nativeCheckInputs = [
    pyyaml
    pytestCheckHook
  ];

  pythonImportsCheck = [ "tomlkit" ];

  meta = with lib; {
    homepage = "https://github.com/sdispater/tomlkit";
    changelog = "https://github.com/sdispater/tomlkit/blob/${version}/CHANGELOG.md";
    description = "Style-preserving TOML library for Python";
    license = licenses.mit;
    maintainers = with maintainers; [ jakewaksbaum ];
  };
}